Browse Source

Fix megatest when SDL3 is used

Sasha Szpakowski 1 year ago
parent
commit
61f1ba29eb
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/test.cpp

+ 4 - 0
src/test.cpp

@@ -10,7 +10,11 @@
 #include <vorbis/vorbisfile.h>
 #include <freetype/config/ftconfig.h>
 #include <freetype/freetype.h>
+#if __has_include(<SDL3/SDL.h>)
+#include <SDL3/SDL.h>
+#else
 #include <SDL.h>
+#endif
 #include <AL/al.h>
 #include <AL/alext.h>
 #include <modplug.h>