mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +00:00
* Unbreak the MinGW build more...
* Unbreak USE_OPENAL_DLOPEN=1
This commit is contained in:
parent
33c1528673
commit
668fdc102c
3 changed files with 6 additions and 5 deletions
|
@ -27,7 +27,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
#include "qal.h"
|
#include "qal.h"
|
||||||
|
|
||||||
#ifdef USE_OPENAL_DLOPEN
|
#if USE_OPENAL_DLOPEN
|
||||||
#if defined _WIN32
|
#if defined _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#define OBJTYPE HMODULE
|
#define OBJTYPE HMODULE
|
||||||
|
@ -341,7 +341,7 @@ void QAL_Shutdown( void )
|
||||||
qalcGetString = NULL;
|
qalcGetString = NULL;
|
||||||
qalcGetIntegerv = NULL;
|
qalcGetIntegerv = NULL;
|
||||||
}
|
}
|
||||||
#endif
|
#else
|
||||||
qboolean QAL_Init(const char *libname)
|
qboolean QAL_Init(const char *libname)
|
||||||
{
|
{
|
||||||
return qtrue;
|
return qtrue;
|
||||||
|
@ -350,3 +350,4 @@ void QAL_Shutdown( void )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
|
@ -28,14 +28,14 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#include "../qcommon/q_shared.h"
|
#include "../qcommon/q_shared.h"
|
||||||
#include "../qcommon/qcommon.h"
|
#include "../qcommon/qcommon.h"
|
||||||
|
|
||||||
#ifdef USE_OPENAL_DLOPEN
|
#if USE_OPENAL_DLOPEN
|
||||||
#define AL_NO_PROTOTYPES
|
#define AL_NO_PROTOTYPES
|
||||||
#define ALC_NO_PROTOTYPES
|
#define ALC_NO_PROTOTYPES
|
||||||
#endif
|
#endif
|
||||||
#include <AL/al.h>
|
#include <AL/al.h>
|
||||||
#include <AL/alc.h>
|
#include <AL/alc.h>
|
||||||
|
|
||||||
#ifdef USE_OPENAL_DLOPEN
|
#if USE_OPENAL_DLOPEN
|
||||||
extern LPALENABLE qalEnable;
|
extern LPALENABLE qalEnable;
|
||||||
extern LPALDISABLE qalDisable;
|
extern LPALDISABLE qalDisable;
|
||||||
extern LPALISENABLED qalIsEnabled;
|
extern LPALISENABLED qalIsEnabled;
|
||||||
|
|
|
@ -234,7 +234,7 @@ ifeq ($(PLATFORM),mingw32)
|
||||||
BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes
|
BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes
|
||||||
|
|
||||||
ifeq ($(USE_OPENAL),1)
|
ifeq ($(USE_OPENAL),1)
|
||||||
BASE_CFLAGS += -DUSE_OPENAL=1
|
BASE_CFLAGS += -DUSE_OPENAL=1 -DUSE_OPENAL_DLOPEN=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DX_CFLAGS = -I$(DXSDK_DIR)/Include
|
DX_CFLAGS = -I$(DXSDK_DIR)/Include
|
||||||
|
|
Loading…
Reference in a new issue