summaryrefslogtreecommitdiff
path: root/sdl-inc.h
diff options
context:
space:
mode:
Diffstat (limited to 'sdl-inc.h')
-rw-r--r--sdl-inc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sdl-inc.h b/sdl-inc.h
index a8a1624..1864eda 100644
--- a/sdl-inc.h
+++ b/sdl-inc.h
@@ -1,6 +1,14 @@
+// this file includes SDL.h.
+// you should include this rather than including SDL.h directly.
+
#ifndef SDL_INC_H_
#define SDL_INC_H_
+
+#if DEBUG || __TINYC__ // speed up compile time on debug, also tcc doesn't have immintrin.h
+#define SDL_DISABLE_IMMINTRIN_H
+#endif
+
no_warn_start
#if _WIN32
#include <SDL.h>