Libretro: Some compatibility fixes

This commit is contained in:
Vicki Pfau 2017-12-23 16:21:02 -08:00
parent 7e243ee2ae
commit 5b7917b6cc
2 changed files with 4 additions and 2 deletions

View File

@ -107,7 +107,7 @@ else ifeq ($(platform), osx)
DEFINES += -D__POWERPC__ -D__PPC__ -DMSB_FIRST
endif
DEFINES += -DHAVE_LOCALE
DEFINES += -std=c99
DEFINES += -std=gnu99
# iOS
else ifneq (,$(findstring ios,$(platform)))

View File

@ -2,7 +2,7 @@
RETRODEFS ?= -D__LIBRETRO__ -DMINIMAL_CORE=2 -DM_CORE_GBA -DM_CORE_GB
INCLUDES += -I$(CORE_DIR)/src -I$(CORE_DIR)/src/arm -I$(CORE_DIR)/include
RETRODEFS += -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DINLINE=inline -DCOLOR_16_BIT -DCOLOR_5_6_5 -DRESAMPLE_LIBRARY=2 -DM_PI=3.14159265358979323846 -DPATH_MAX=4096 -DSSIZE_MAX=32767
RETRODEFS += -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DINLINE=inline -DCOLOR_16_BIT -DCOLOR_5_6_5 -DRESAMPLE_LIBRARY=2 -DM_PI=3.14159265358979323846 -DPATH_MAX=4096 -DSSIZE_MAX=2147483648
ifneq ($(DEBUG), 1)
RETRODEFS += -DNDEBUG
@ -15,10 +15,12 @@ endif
ifeq (,$(findstring win,$(platform)))
ifeq (,$(findstring mingw,$(platform)))
ifneq ($(platform), vita)
ifneq ($(platform), ps3)
RETRODEFS += -DHAVE_LOCALTIME_R
endif
endif
endif
endif
SOURCES_C := $(CORE_DIR)/src/arm/arm.c \
$(CORE_DIR)/src/arm/decoder.c \