From 9501f1cb9eec4e042f1f6c918ceae5c832a9cd5a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 6 Oct 2012 21:36:15 -0700 Subject: [PATCH] Define WIN32_LEAN_AND_MEAN when including windows.h in alMain.h --- Alc/backends/null.c | 3 +++ Alc/backends/wave.c | 3 +++ OpenAL32/Include/alMain.h | 1 + 3 files changed, 7 insertions(+) diff --git a/Alc/backends/null.c b/Alc/backends/null.c index 0b58310a..93b38063 100644 --- a/Alc/backends/null.c +++ b/Alc/backends/null.c @@ -21,6 +21,9 @@ #include "config.h" #include +#ifdef HAVE_WINDOWS_H +#include +#endif #include "alMain.h" #include "alu.h" diff --git a/Alc/backends/wave.c b/Alc/backends/wave.c index ecbfde66..38932819 100644 --- a/Alc/backends/wave.c +++ b/Alc/backends/wave.c @@ -23,6 +23,9 @@ #include #include #include +#ifdef HAVE_WINDOWS_H +#include +#endif #include "alMain.h" #include "alu.h" diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 8b0850de..ba6a5c8b 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -107,6 +107,7 @@ static const union { #ifdef _WIN32 +#define WIN32_LEAN_AND_MEAN #include typedef DWORD pthread_key_t;