OS/2 patches for SDLMAME 0.159 [KO Muyng-Hun]

This commit is contained in:
Vas Crabb 2015-03-15 22:57:16 +11:00
parent 9d6f238186
commit af7b120d82
3 changed files with 6 additions and 4 deletions

View File

@ -63,6 +63,10 @@
#pragma warning (disable : 4204) // missing c99 support
#endif
#ifdef __OS2__
#define _MMAP_DECLARED // Prevent dummy mmap() declaration in stdio.h
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <assert.h>

View File

@ -483,12 +483,10 @@ ifdef PROFILER
DEFS += -DMAME_PROFILER
endif
# dine USE_NETWORK if networking is enabled (not OS/2 and hasn't been disabled)
ifneq ($(TARGETOS),os2)
# define USE_NETWORK if networking is enabled (hasn't been disabled)
ifndef DONT_USE_NETWORK
DEFS += -DUSE_NETWORK
endif
endif
# need to ensure FLAC functions are statically linked
ifeq ($(BUILD_FLAC),1)

View File

@ -753,7 +753,7 @@ SDLLIBS := $(shell sdl-config --libs)
INCPATH += $(SDLCFLAGS)
LIBS += $(SDLLIBS) -lpthread
BASELIBS += += $(SDLLIBS) -lpthread
BASELIBS += $(SDLLIBS) -lpthread
endif # OS2