From acb810b9723ff79f7ab42af865f6d36c115bd542 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Thu, 1 Dec 2005 20:45:01 +0000 Subject: [PATCH] * Fix compilation when using SDL and dlopening OpenAL --- code/client/qal.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/client/qal.c b/code/client/qal.c index e7513dcd..e8869b3b 100644 --- a/code/client/qal.c +++ b/code/client/qal.c @@ -45,8 +45,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define OBJFREE(x) FreeLibrary(x) #elif defined __linux__ || defined __FreeBSD__ || defined MACOS_X -#include -#include #include #define OBJTYPE void * #define OBJLOAD(x) dlopen(x, RTLD_LAZY | RTLD_GLOBAL) @@ -57,6 +55,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #error "Your platform has no lib loading code or it is disabled" #endif +#if defined __linux__ || defined __FreeBSD__ || defined MACOS_X +#include +#include +#endif + LPALENABLE qalEnable; LPALDISABLE qalDisable; LPALISENABLED qalIsEnabled;