#error for unknown platform in demos project

This commit is contained in:
Jake Turner
2021-02-20 05:26:37 +00:00
committed by Baldur Karlsson
parent f14130fc2d
commit baf0e3ea70
2 changed files with 8 additions and 2 deletions
+5 -1
View File
@@ -139,7 +139,7 @@ void NuklearShutdown()
UnregisterClassW(wc.lpszClassName, wc.hInstance);
}
#else
#elif defined(__linux__)
#define NK_XLIB_IMPLEMENTATION
#include "3rdparty/nuklear/nuklear_xlib.h"
@@ -214,6 +214,10 @@ void NuklearShutdown()
XCloseDisplay(dpy);
}
#else
#error UNKNOWN PLATFORM
#endif
// nuklear
+3 -1
View File
@@ -26,8 +26,10 @@
#if defined(WIN32)
#include "win32/win32_platform.h"
#else
#elif defined(__linux__)
#include "linux/linux_platform.h"
#else
#error UNKNOWN PLATFORM
#endif
#include <math.h>