Fix build on MinGW (as compared to Linux)
authorPerttu Ahola <celeron55@gmail.com>
Sat, 24 Mar 2012 21:16:09 +0000 (23:16 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Sat, 24 Mar 2012 21:16:09 +0000 (23:16 +0200)
src/CMakeLists.txt
src/sound_openal.cpp

index c852d5b0a34fc05e9465f0f222eae8421bb7f85f..4807e871cc2a476700d3a36794d9e82a45f0540e 100644 (file)
@@ -235,7 +235,7 @@ include_directories(
        ${CMAKE_BUILD_TYPE}
        ${PNG_INCLUDE_DIR}
        ${GETTEXT_INCLUDE_DIR}
-       ${AUDIO_INLCUDE_DIRS}
+       ${AUDIO_INCLUDE_DIRS}
        ${JTHREAD_INCLUDE_DIR}
        ${SQLITE3_INCLUDE_DIR}
        ${LUA_INCLUDE_DIR}
index 26ad6fa4ce2ffb12d995b1a2be11e75aaae180a1..6f9ff3bd60b00c6ff11d8d69c38804168334d7c5 100644 (file)
@@ -23,10 +23,10 @@ with this program; ifnot, write to the Free Software Foundation, Inc.,
 
 #include "sound_openal.h"
 
-#if defined(_MSC_VER)
+#if defined(_WIN32)
        #include <al.h>
        #include <alc.h>
-       #include <alext.h>
+       //#include <alext.h>
 #elif defined(__APPLE__)
        #include <OpenAL/al.h>
        #include <OpenAL/alc.h>