]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - SDLMain.m
Rename host_t -> host_static_t.
[xonotic/darkplaces.git] / SDLMain.m
index 2434f81aa9b7389770550961a8c61d9f6018dc86..6eadb9ee60f3b483e55be43e4fd36053e5a30850 100644 (file)
--- a/SDLMain.m
+++ b/SDLMain.m
@@ -5,7 +5,10 @@
     Feel free to customize this file to suit your needs
 */
 
-#include "SDL.h"
+#include <SDL.h>
+
+#if SDL_MAJOR_VERSION == 1
+
 #include "SDLMain.h"
 #include <sys/param.h> /* for MAXPATHLEN */
 #include <unistd.h>
@@ -379,3 +382,4 @@ int main (int argc, char **argv)
     return 0;
 }
 
+#endif