(svn r2735) -Fix: [OSX] fixed issue introduced in 2733 where dedicated servers on OSX included sdl.h even when WITH_SDL was not defined (oops)
authorbjarni
Thu, 28 Jul 2005 09:01:41 +0000
changeset 2217 c3a8a3bbc81f
parent 2216 51a715447fc4
child 2218 abd47ef7d902
(svn r2735) -Fix: [OSX] fixed issue introduced in 2733 where dedicated servers on OSX included sdl.h even when WITH_SDL was not defined (oops)
unix.c
--- a/unix.c	Thu Jul 28 08:49:29 2005 +0000
+++ b/unix.c	Thu Jul 28 09:01:41 2005 +0000
@@ -39,8 +39,11 @@
 #endif
 
 #if defined(__APPLE__)
-#include <SDL.h>	//the mac implementation needs this file included in the same file as main()
-#include "os/macosx/macos.h"
+	#if defined(WITH_SDL)
+		//the mac implementation needs this file included in the same file as main()
+		#include <SDL.h>
+	#endif
+	#include "os/macosx/macos.h"
 #endif
 
 static char *_fios_path;