From 41795423cf62874a43480f7ac263a0cc46baacd4 Mon Sep 17 00:00:00 2001 From: bjarni Date: Thu, 28 Jul 2005 09:01:41 +0000 Subject: (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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/unix.c b/unix.c index e926dca27..24f3ce5c1 100644 --- a/unix.c +++ b/unix.c @@ -39,8 +39,11 @@ ULONG __stack = (1024*1024)*2; // maybe not that much is needed actually ;) #endif #if defined(__APPLE__) -#include //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 + #endif + #include "os/macosx/macos.h" #endif static char *_fios_path; -- cgit v1.2.3-54-g00ecf