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 /src/window.cpp | |
| parent | 0b68d510069ec524daa3e10e598587c62ab713ff (diff) | |
Compile on windows
Diffstat (limited to 'src/window.cpp')
| -rw-r--r-- | src/window.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/window.cpp b/src/window.cpp index 1bfc903..d901e66 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1,5 +1,6 @@ #include "window.hpp" +#ifdef LINUX window::window(uint32_t width, uint32_t height) :width(width), height(height) { connection = xcb_connect(NULL, NULL); @@ -27,3 +28,8 @@ window::window(uint32_t width, uint32_t height) xcb_map_window(connection, win); xcb_flush(connection); } +#elif defined(WINDOWS) +window::window(uint32_t width, uint32_t height) + :width(width), height(height) { +} +#endif |
