diff options
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_ |
