r401 - trunk/code/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Dec 1 15:45:01 EST 2005


Author: tma
Date: 2005-12-01 15:45:01 -0500 (Thu, 01 Dec 2005)
New Revision: 401

Modified:
   trunk/code/client/qal.c
Log:
* Fix compilation when using SDL and dlopening OpenAL


Modified: trunk/code/client/qal.c
===================================================================
--- trunk/code/client/qal.c	2005-12-01 18:22:42 UTC (rev 400)
+++ trunk/code/client/qal.c	2005-12-01 20:45:01 UTC (rev 401)
@@ -45,8 +45,6 @@
 #define OBJFREE(x) FreeLibrary(x)
 
 #elif defined __linux__ || defined __FreeBSD__ || defined MACOS_X
-#include <unistd.h>
-#include <sys/types.h>
 #include <dlfcn.h>
 #define OBJTYPE void *
 #define OBJLOAD(x) dlopen(x, RTLD_LAZY | RTLD_GLOBAL)
@@ -57,6 +55,11 @@
 #error "Your platform has no lib loading code or it is disabled"
 #endif
 
+#if defined __linux__ || defined __FreeBSD__ || defined MACOS_X
+#include <unistd.h>
+#include <sys/types.h>
+#endif
+
 LPALENABLE qalEnable;
 LPALDISABLE qalDisable;
 LPALISENABLED qalIsEnabled;




More information about the quake3-commits mailing list