From 93e77069781480a11c6f0981573fd37d457ef3bd Mon Sep 17 00:00:00 2001 From: Michael Maltese Date: Tue, 24 May 2016 17:43:55 -0700 Subject: [PATCH] WASAPI: define WIN32_LEAN_AND_MEAN in source as well as header When compiling with Visual Studio (#49), prevents this error: ``` 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\um\commdlg.h(929): error C2373: 'IPrintDialogCallbackVtbl': redefinition; different type modifiers 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\um\commdlg.h(929): note: see declaration of 'IPrintDialogCallbackVtbl' 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\um\commdlg.h(961): error C2373: 'IPrintDialogServicesVtbl': redefinition; different type modifiers 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\um\commdlg.h(961): note: see declaration of 'IPrintDialogServicesVtbl' ``` --- src/wasapi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wasapi.c b/src/wasapi.c index faf4f34..8cff4bf 100644 --- a/src/wasapi.c +++ b/src/wasapi.c @@ -5,6 +5,10 @@ * See http://opensource.org/licenses/MIT */ +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif + #define INITGUID #define CINTERFACE #define COBJMACROS