]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
attempt to fix the includes for win32
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 27 Feb 2010 15:09:43 +0000 (15:09 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 27 Feb 2010 15:09:43 +0000 (15:09 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10019 d7cf8633-e32d-0410-b094-e92efae38249

sys_shared.c

index c95612c4d5e4f462aecf675da6ea28abeac7fcab..4141ce2efc91dba1166ca7f666876eae1c545665 100644 (file)
@@ -2,14 +2,16 @@
 
 #define SUPPORTDLL
 
-#ifndef WIN32
+#ifdef WIN32
+# include <windows.h>
+#else
 # include <unistd.h>
 # include <fcntl.h>
 # include <sys/time.h>
 # include <time.h>
-#ifdef SUPPORTDLL
-# include <dlfcn.h>
-#endif
+# ifdef SUPPORTDLL
+#  include <dlfcn.h>
+# endif
 #endif
 
 static char sys_timestring[128];