changeset 2217:1ef48a7bd4bf draft

(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)
author bjarni <bjarni@openttd.org>
date Thu, 28 Jul 2005 09:01:41 +0000
parents 9ef48fbdaf28
children 1e5a1e9725ad
files unix.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/unix.c
+++ b/unix.c
@@ -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;