浏览代码

Fix megatest when SDL3 is used

Sasha Szpakowski 1 年之前
父节点
当前提交
61f1ba29eb
共有 1 个文件被更改,包括 4 次插入0 次删除
  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>