]> 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)
committerRudolf Polzer <rpolzer@grawp.(none)>
Tue, 2 Mar 2010 08:12:29 +0000 (09:12 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10019 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=715d02cb31a0bf038288cd3a04372c959ea2648c

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];