]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_sdl.c
common: Define DP_STATIC_ASSERT which wraps static_assert
[xonotic/darkplaces.git] / sys_sdl.c
index 50cca9d99d5688c2e3442caf963f04e8bfbcfe3a..15a626d315421a89358ba4a910031d77441b6a19 100644 (file)
--- a/sys_sdl.c
+++ b/sys_sdl.c
@@ -1,5 +1,3 @@
-#include "darkplaces.h"
-
 #ifdef WIN32
 #include <io.h>
 #include "conio.h"
 
 #include <signal.h>
 
+/*
+ * Include this BEFORE darkplaces.h because it breaks wrapping
+ * _Static_assert. Cloudwalk has no idea how or why so don't ask.
+ */
 #include <SDL.h>
 
+#include "darkplaces.h"
+
 #ifdef WIN32
 #ifdef _MSC_VER
 #pragma comment(lib, "sdl2.lib")