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/window.hpp | |
| parent | 0b68d510069ec524daa3e10e598587c62ab713ff (diff) | |
Compile on windows
Diffstat (limited to 'include/window.hpp')
| -rw-r--r-- | include/window.hpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/window.hpp b/include/window.hpp index 8ddb58d..4b3d37b 100644 --- a/include/window.hpp +++ b/include/window.hpp @@ -1,6 +1,18 @@ #ifndef __WINDOW_HPP_ #define __WINDOW_HPP_ +#include <cstdint> + +#if defined(__linux__) +#define LINUX +#include <unistd.h> +#include <dlfcn.h> +#elif defined(_WIN32) || defined(_WIN64) +#define WINDOWS +#include <Windows.h> +#endif + +#if defined(LINUX) #include <xcb/xcb.h> class window { @@ -13,5 +25,16 @@ class window { uint32_t width; uint32_t height; }; +#elif defined(WINDOWS) +#include <Windows.h> + +class window { + public: + window(uint32_t width, uint32_t height); + + uint32_t width; + uint32_t height; +}; +#endif #endif // !__WINDOW_HPP_ |
