diff --git a/CMakeLists.txt b/CMakeLists.txt index e842dc3..a4b729c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -389,7 +389,7 @@ ELSE() INSTALL(FILES ${PA_PUBLIC_INCLUDES} DESTINATION include) INSTALL(TARGETS portaudio DESTINATION lib) ENDIF(NOT PA_OUTPUT_OSX_FRAMEWORK) -ENDIF(WIN32) +ENDIF() # Prepared for inclusion of test files OPTION(PA_BUILD_TESTS "Include test projects" OFF) diff --git a/src/hostapi/wasapi/pa_win_wasapi.c b/src/hostapi/wasapi/pa_win_wasapi.c index 8ca9acd..6e62a4a 100644 --- a/src/hostapi/wasapi/pa_win_wasapi.c +++ b/src/hostapi/wasapi/pa_win_wasapi.c @@ -78,6 +78,7 @@ #include "pa_win_coinitialize.h" #ifndef NTDDI_VERSION + #undef WINVER #undef _WIN32_WINNT #define WINVER 0x0600 // VISTA