diff options
author | Ben Iofel <iofelben@gmail.com> | 2014-01-19 18:18:25 -0500 |
---|---|---|
committer | Ben Iofel <iofelben@gmail.com> | 2014-01-19 19:30:14 -0500 |
commit | 174cec7f158aed30e66d358c37190c0f3f1fc2c3 (patch) | |
tree | 0b93d94b1174b2b3d39004a24f670f37ff0396c8 /testing/nTox.c | |
parent | 01c3c1be728f39cd398be3d0e49e1aaadc0df029 (diff) |
proper windows preprocessor detection
Diffstat (limited to 'testing/nTox.c')
-rw-r--r-- | testing/nTox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/nTox.c b/testing/nTox.c index bf12f5b2..8f7dc7ea 100644 --- a/testing/nTox.c +++ b/testing/nTox.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include "config.h" | 24 | #include "config.h" |
25 | #endif | 25 | #endif |
26 | 26 | ||
27 | #ifdef __WIN32__ | 27 | #if defined(_WIN32) || defined(__WIN32__) || defined (WIN32) |
28 | #define _WIN32_WINNT 0x501 | 28 | #define _WIN32_WINNT 0x501 |
29 | #include <winsock2.h> | 29 | #include <winsock2.h> |
30 | #include <ws2tcpip.h> | 30 | #include <ws2tcpip.h> |
@@ -44,7 +44,7 @@ | |||
44 | #include <time.h> | 44 | #include <time.h> |
45 | #include <locale.h> | 45 | #include <locale.h> |
46 | 46 | ||
47 | #ifdef __WIN32__ | 47 | #if defined(_WIN32) || defined(__WIN32__) || defined (WIN32) |
48 | #define c_sleep(x) Sleep(1*x) | 48 | #define c_sleep(x) Sleep(1*x) |
49 | #else | 49 | #else |
50 | #include <unistd.h> | 50 | #include <unistd.h> |