mirror of
https://github.com/UberGames/ioef.git
synced 2025-02-28 22:21:48 +00:00
* Fix compilation when using SDL and dlopening OpenAL
This commit is contained in:
parent
3161a34a4f
commit
acb810b972
1 changed files with 5 additions and 2 deletions
|
@ -45,8 +45,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#define OBJFREE(x) FreeLibrary(x)
|
#define OBJFREE(x) FreeLibrary(x)
|
||||||
|
|
||||||
#elif defined __linux__ || defined __FreeBSD__ || defined MACOS_X
|
#elif defined __linux__ || defined __FreeBSD__ || defined MACOS_X
|
||||||
#include <unistd.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#define OBJTYPE void *
|
#define OBJTYPE void *
|
||||||
#define OBJLOAD(x) dlopen(x, RTLD_LAZY | RTLD_GLOBAL)
|
#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"
|
#error "Your platform has no lib loading code or it is disabled"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined __linux__ || defined __FreeBSD__ || defined MACOS_X
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
LPALENABLE qalEnable;
|
LPALENABLE qalEnable;
|
||||||
LPALDISABLE qalDisable;
|
LPALDISABLE qalDisable;
|
||||||
LPALISENABLED qalIsEnabled;
|
LPALISENABLED qalIsEnabled;
|
||||||
|
|
Loading…
Reference in a new issue