* use msvc proposed names when building on win32
authorNathan Letwory <nathan@letworyinteractive.com>
Sat, 8 Nov 2008 12:01:55 +0000 (12:01 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Sat, 8 Nov 2008 12:01:55 +0000 (12:01 +0000)
intern/SoundSystem/intern/SND_Utils.cpp

index 78115807970c08c7c53aef3d3c36dc316bdf3a15..26ce106a24e5cbab243e2c3f7694211426dfb8a9 100644 (file)
 #include <math.h>
 #include <string.h>
 
-#if defined(WIN32)
+#if defined(_WIN32)
 #include <io.h>
+#define open _open
+#define read _read
+#define close _close
+#define write _write
+#define lseek _lseek
 #else
 #include <unistd.h>
 #endif