]> Repos - portaudio/commitdiff
define WIN32_WINNT and WINVER to 501 (winxp) to resolve conflict between mingw winbas...
authorrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Thu, 10 Nov 2011 03:51:52 +0000 (03:51 +0000)
committerrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Thu, 10 Nov 2011 03:51:52 +0000 (03:51 +0000)
configure.in

index 5a3fd0efeb961b05f904e96715d6ff5a437f9536..9618090ae5340878d097cb58900d526479470c5a 100644 (file)
@@ -257,6 +257,13 @@ case "${host_os}" in
             LIBS="-lwinmm -lm -lole32 -luuid"
             DLL_LIBS="${DLL_LIBS} -lwinmm -lm -lole32 -luuid"
             CFLAGS="$CFLAGS -ffast-math -fomit-frame-pointer -I\$(top_srcdir)/src/hostapi/asio -I$ASIODIR/host/pc -I$ASIODIR/common -I$ASIODIR/host -UPA_USE_ASIO -DPA_USE_ASIO=1 -DWINDOWS"
+
+            dnl Setting the windows version flags below resolves a conflict between Interlocked* 
+            dnl definitions in mingw winbase.h and Interlocked* hacks in ASIO SDK combase.h 
+            dnl combase.h is included by asiodrvr.h
+            dnl PortAudio does not actually require Win XP (winver 501) APIs 
+            CFLAGS="$CFLAGS -D_WIN32_WINNT=0x0501 -DWINVER=0x0501"
+            
             CXXFLAGS="$CFLAGS"
         fi