snd_xmp: adjust windows static linkage for latest libxmp headers

This commit is contained in:
Ozkan Sezer 2023-05-20 06:05:40 +03:00
parent 36fd7e4465
commit 00d36583e7
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
# makefile to build quakespasm.exe for Windows using Open Watcom:
# wmake -f Makefile.wat
# wmake -f Makefile.wat
### Enable/disable SDL2
USE_SDL2=0
@ -100,7 +100,7 @@ CODECLIBS+= $(LIBCODEC)mikmod.lib
!endif
!ifeq USE_CODEC_XMP 1
CFLAGS+= -DUSE_CODEC_XMP
CFLAGS+= -DXMP_NO_DLL
CFLAGS+= -DLIBXMP_STATIC
CODECLIBS+= $(LIBCODEC)libxmp.lib
!endif
!ifeq USE_CODEC_MODPLUG 1

View file

@ -26,7 +26,7 @@
#include "snd_codec.h"
#include "snd_codeci.h"
#include "snd_xmp.h"
#if defined(_WIN32) && defined(XMP_NO_DLL)
#if defined(_WIN32) && defined(LIBXMP_STATIC)
#define BUILDING_STATIC
#endif
#include <xmp.h>