summaryrefslogtreecommitdiff
path: root/sdl-inc.h
diff options
context:
space:
mode:
Diffstat (limited to 'sdl-inc.h')
-rw-r--r--sdl-inc.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/sdl-inc.h b/sdl-inc.h
new file mode 100644
index 0000000..7bb613b
--- /dev/null
+++ b/sdl-inc.h
@@ -0,0 +1,15 @@
+#ifndef SDL_INC_H_
+#define SDL_INC_H_
+
+no_warn_start
+#if _WIN32
+ #include <SDL.h>
+#else
+ #if DEBUG || __TINYC__ // speed up compile time on debug, also tcc doesn't have immintrin.h
+ #define SDL_DISABLE_IMMINTRIN_H
+ #endif
+ #include <SDL2/SDL.h>
+#endif
+no_warn_end
+
+#endif // SDL_INC_H_