diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-12-01 20:45:01 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-12-01 20:45:01 +0000 |
commit | 7dbeecaccbc4897dd81113aa00448eec8916c8fa (patch) | |
tree | d2f902a8d0e545cbd058c5ea72e6668f853468c9 /code/client | |
parent | f6613ea144c6ddcbf744b3929d2a175da2b6223d (diff) | |
download | ioquake3-aero-7dbeecaccbc4897dd81113aa00448eec8916c8fa.tar.gz ioquake3-aero-7dbeecaccbc4897dd81113aa00448eec8916c8fa.zip |
* Fix compilation when using SDL and dlopening OpenAL
git-svn-id: svn://svn.icculus.org/quake3/trunk@401 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client')
-rw-r--r-- | code/client/qal.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/code/client/qal.c b/code/client/qal.c index e7513dc..e8869b3 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 <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 @@ 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 <unistd.h> +#include <sys/types.h> +#endif + LPALENABLE qalEnable; LPALDISABLE qalDisable; LPALISENABLED qalIsEnabled; |