From 4c7e4ae43566d08f1d7d91bffff4646ce287a68a Mon Sep 17 00:00:00 2001 From: ladevieq Date: Wed, 13 Jan 2021 22:20:01 +0100 Subject: Compile on windows --- src/window.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/window.cpp') 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 -- cgit v1.3