summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/backends/dsound.c1
-rw-r--r--Alc/backends/mmdevapi.c1
-rw-r--r--Alc/backends/winmm.c1
-rw-r--r--CMakeLists.txt2
-rw-r--r--OpenAL32/Include/alMain.h3
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;