diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-01-13 22:20:01 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-01-13 22:20:01 +0100 |
| commit | 4c7e4ae43566d08f1d7d91bffff4646ce287a68a (patch) | |
| tree | da9576fc4978f3ce7da1a97c7986dc5103061f9e /include/rt.hpp | |
| parent | 0b68d510069ec524daa3e10e598587c62ab713ff (diff) | |
Compile on windows
Diffstat (limited to 'include/rt.hpp')
| -rw-r--r-- | include/rt.hpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/rt.hpp b/include/rt.hpp index 222fe3a..c7fa9a0 100644 --- a/include/rt.hpp +++ b/include/rt.hpp @@ -1,6 +1,15 @@ #ifndef __RT_HPP_ #define __RT_HPP_ +#if defined(__linux__) +#define LINUX +#include <unistd.h> +#include <dlfcn.h> +#elif defined(_WIN32) || defined(_WIN64) +#define WINDOWS +#include <Windows.h> +#endif + #include "utils.hpp" #include "vec3.hpp" #include "color.hpp" @@ -8,8 +17,6 @@ #include "camera.hpp" #include "material.hpp" -#ifdef __linux__ #include "window.hpp" -#endif #endif // !__RT_HPP_ |
