]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_shared.c
don't load corrupt wav files
[xonotic/darkplaces.git] / sys_shared.c
index 903bee1e6868edbe8363ea1791f2f5fdefccfcd8..991c67c2b64c04c562a3d98c3a7777aca12031ac 100644 (file)
@@ -10,9 +10,6 @@
 # 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>
@@ -232,8 +229,12 @@ void* Sys_GetProcAddress (dllhandle_t handle, const char* name)
 # define HAVE_GETTIMEOFDAY 1
 #endif
 
-#ifdef FD_SET
-# define HAVE_SELECT 1
+#ifndef WIN32
+// on Win32, select() cannot be used with all three FD list args being NULL according to MSDN
+// (so much for POSIX...)
+# ifdef FD_SET
+#  define HAVE_SELECT 1
+# endif
 #endif
 
 #ifndef WIN32