diff options
author | Chris Robinson <[email protected]> | 2011-09-20 14:59:01 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-09-20 14:59:01 -0700 |
commit | 390d94ec97f52bf96a69dd7a698063c1e1f04bb2 (patch) | |
tree | 2cd7996423ecba2af2f4ee9029acc653013a90f8 | |
parent | e01092a0da3559a8c8c28312388ef9b416319aae (diff) |
Define _WIN32_WINNT on the command line with _WIN32
-rw-r--r-- | Alc/backends/dsound.c | 1 | ||||
-rw-r--r-- | Alc/backends/mmdevapi.c | 1 | ||||
-rw-r--r-- | Alc/backends/winmm.c | 1 | ||||
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | OpenAL32/Include/alMain.h | 3 |
5 files changed, 1 insertions, 7 deletions
diff --git a/Alc/backends/dsound.c b/Alc/backends/dsound.c index 2b944adc..f1dd0762 100644 --- a/Alc/backends/dsound.c +++ b/Alc/backends/dsound.c @@ -20,7 +20,6 @@ #include "config.h" -#define _WIN32_WINNT 0x0500 #include <stdlib.h> #include <stdio.h> #include <memory.h> diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c index 5fe545a1..6c5c5daf 100644 --- a/Alc/backends/mmdevapi.c +++ b/Alc/backends/mmdevapi.c @@ -21,7 +21,6 @@ #include "config.h" #define COBJMACROS -#define _WIN32_WINNT 0x0500 #include <stdlib.h> #include <stdio.h> #include <memory.h> diff --git a/Alc/backends/winmm.c b/Alc/backends/winmm.c index 67182950..1af5105b 100644 --- a/Alc/backends/winmm.c +++ b/Alc/backends/winmm.c @@ -20,7 +20,6 @@ #include "config.h" -#define _WIN32_WINNT 0x0500 #include <stdlib.h> #include <stdio.h> #include <memory.h> diff --git a/CMakeLists.txt b/CMakeLists.txt index 3783a176..63287dfa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,7 +61,7 @@ OPTION(ALSOFT_CONFIG "Install alsoft.conf configuration file" OFF) IF(WIN32) SET(LIBNAME OpenAL32) - ADD_DEFINITIONS("-D_WIN32") + ADD_DEFINITIONS("-D_WIN32 -D_WIN32_WINNT=0x0500") ELSE() SET(LIBNAME openal) ENDIF() diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 558f620b..7bcbef8f 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -163,9 +163,6 @@ typedef ptrdiff_t ALsizeiptrEXT; #ifdef _WIN32 -#ifndef _WIN32_WINNT -#define _WIN32_WINNT 0x0500 -#endif #include <windows.h> typedef DWORD pthread_key_t; |