diff options
Diffstat (limited to 'config.tests/openal')
-rw-r--r-- | config.tests/openal/main.cpp | 4 | ||||
-rw-r--r-- | config.tests/openal/openal.pro | 9 |
2 files changed, 8 insertions, 5 deletions
diff --git a/config.tests/openal/main.cpp b/config.tests/openal/main.cpp index 695306270..0675a6320 100644 --- a/config.tests/openal/main.cpp +++ b/config.tests/openal/main.cpp @@ -39,7 +39,11 @@ ** ****************************************************************************/ +#if defined(HEADER_OPENAL_PREFIX) +#include <OpenAL/al.h> +#else #include <AL/al.h> +#endif int main(int argc, char** argv) { diff --git a/config.tests/openal/openal.pro b/config.tests/openal/openal.pro index c0e6e5761..28c4b9528 100644 --- a/config.tests/openal/openal.pro +++ b/config.tests/openal/openal.pro @@ -1,7 +1,6 @@ SOURCES += main.cpp -win32 { - LIBS += -lOpenAL32 -}else { - LIBS += -lopenal -} +win32: LIBS += -lOpenAL32 +unix:!mac: LIBS += -lopenal +mac: LIBS += -framework OpenAL +mac: DEFINES += HEADER_OPENAL_PREFIX |