[vlc-devel] [PATCH] wasapi: if config.h has _WIN32_WINNT we may not have a useful value

Steve Lhomme robux4 at gmail.com
Thu Aug 6 08:40:56 CEST 2015


---
 modules/audio_output/wasapi.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules/audio_output/wasapi.c b/modules/audio_output/wasapi.c
index 48f6d95..5e31fc1 100644
--- a/modules/audio_output/wasapi.c
+++ b/modules/audio_output/wasapi.c
@@ -18,11 +18,15 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#define _WIN32_WINNT 0x600
 #ifdef HAVE_CONFIG_H
 # include <config.h>
 #endif
 
+#if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x600
+# undef _WIN32_WINNT
+# define _WIN32_WINNT 0x600
+#endif
+
 #define INITGUID
 #define COBJMACROS
 #define CONST_VTABLE
-- 
2.4.5



More information about the vlc-devel mailing list