From 390d94ec97f52bf96a69dd7a698063c1e1f04bb2 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 20 Sep 2011 14:59:01 -0700 Subject: [PATCH] Define _WIN32_WINNT on the command line with _WIN32 --- Alc/backends/dsound.c | 1 - Alc/backends/mmdevapi.c | 1 - Alc/backends/winmm.c | 1 - CMakeLists.txt | 2 +- OpenAL32/Include/alMain.h | 3 --- 5 files changed, 1 insertion(+), 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 #include #include 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 #include #include 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 #include #include 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 typedef DWORD pthread_key_t;