Skip to content

Commit

Permalink
* Unbreak the MinGW build more...
Browse files Browse the repository at this point in the history
* Unbreak USE_OPENAL_DLOPEN=1
  • Loading branch information
timangus committed Nov 13, 2005
1 parent 33c1528 commit 668fdc1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions code/client/qal.c
Expand Up @@ -27,7 +27,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

#include "qal.h"

#ifdef USE_OPENAL_DLOPEN
#if USE_OPENAL_DLOPEN
#if defined _WIN32
#include <windows.h>
#define OBJTYPE HMODULE
Expand Down Expand Up @@ -341,7 +341,7 @@ void QAL_Shutdown( void )
qalcGetString = NULL;
qalcGetIntegerv = NULL;
}
#endif
#else
qboolean QAL_Init(const char *libname)
{
return qtrue;
Expand All @@ -350,3 +350,4 @@ void QAL_Shutdown( void )
{
}
#endif
#endif
4 changes: 2 additions & 2 deletions code/client/qal.h
Expand Up @@ -28,14 +28,14 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "../qcommon/q_shared.h"
#include "../qcommon/qcommon.h"

#ifdef USE_OPENAL_DLOPEN
#if USE_OPENAL_DLOPEN
#define AL_NO_PROTOTYPES
#define ALC_NO_PROTOTYPES
#endif
#include <AL/al.h>
#include <AL/alc.h>

#ifdef USE_OPENAL_DLOPEN
#if USE_OPENAL_DLOPEN
extern LPALENABLE qalEnable;
extern LPALDISABLE qalDisable;
extern LPALISENABLED qalIsEnabled;
Expand Down
2 changes: 1 addition & 1 deletion code/unix/Makefile
Expand Up @@ -234,7 +234,7 @@ ifeq ($(PLATFORM),mingw32)
BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes

ifeq ($(USE_OPENAL),1)
BASE_CFLAGS += -DUSE_OPENAL=1
BASE_CFLAGS += -DUSE_OPENAL=1 -DUSE_OPENAL_DLOPEN=1
endif

DX_CFLAGS = -I$(DXSDK_DIR)/Include
Expand Down

0 comments on commit 668fdc1

Please sign in to comment.