]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_shared.c
cvar saving: do not save all ALLOCATED cvars (seta), only save all cvars that were...
[xonotic/darkplaces.git] / sys_shared.c
index 991c67c2b64c04c562a3d98c3a7777aca12031ac..695f34651893c63047cff347ec83e4bc1421d767 100644 (file)
@@ -4,12 +4,17 @@
 
 #ifdef WIN32
 # ifdef _WIN64
-#  define _WIN32_WINNT 0x0502
+#  ifndef _WIN32_WINNT
+#   define _WIN32_WINNT 0x0502
+#  endif
    // for SetDllDirectory
 # endif
 # include <windows.h>
 # include <mmsystem.h> // timeGetTime
 # include <time.h> // localtime
+#ifdef _MSC_VER
+#pragma comment(lib, "winmm.lib")
+#endif
 #else
 # include <unistd.h>
 # include <fcntl.h>