From 6f7867b5e9087b2355462d3b24ae39f3af0a73ad Mon Sep 17 00:00:00 2001 From: Michael Goddard Date: Wed, 27 Jun 2012 17:07:44 +1000 Subject: Fix header path for audio engine on Mac. There's a different prefix here. Change-Id: Ifda82e19824801b1d903ab6ad40c97428fff236c Reviewed-by: Dmytro Poplavskiy --- config.tests/openal/main.cpp | 4 ++++ config.tests/openal/openal.pro | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'config.tests') 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 +#else #include +#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 -- cgit v1.2.1