mirror of
https://github.com/libretro/mgba.git
synced 2024-11-22 23:49:51 +00:00
macOS and iOS need to have HAVE_STRLCPY defined
This commit is contained in:
parent
a0f0828838
commit
ed4b9607c2
@ -195,6 +195,7 @@ else ifeq ($(platform), osx)
|
||||
DEFINES += -D__POWERPC__ -D__PPC__ -DMSB_FIRST
|
||||
endif
|
||||
DEFINES += -std=gnu99
|
||||
DEFINES += -DHAVE_STRLCPY
|
||||
ifeq ($(CROSS_COMPILE),1)
|
||||
TARGET_RULE = -target $(LIBRETRO_APPLE_PLATFORM) -isysroot $(LIBRETRO_APPLE_ISYSROOT)
|
||||
CFLAGS += $(TARGET_RULE)
|
||||
@ -222,6 +223,7 @@ else ifneq (,$(findstring ios,$(platform)))
|
||||
PLATFORM_DEFINES := -miphoneos-version-min=5.0
|
||||
endif
|
||||
DEFINES += -std=c99
|
||||
DEFINES += -DHAVE_STRLCPY
|
||||
|
||||
# tvOS
|
||||
else ifeq ($(platform), tvos-arm64)
|
||||
@ -230,6 +232,7 @@ else ifeq ($(platform), tvos-arm64)
|
||||
SHARED := -dynamiclib
|
||||
CFLAGS := -DIOS
|
||||
DEFINES += -std=c99
|
||||
DEFINES += -DHAVE_STRLCPY
|
||||
|
||||
ifeq ($(IOSSDK),)
|
||||
IOSSDK := $(shell xcodebuild -version -sdk appletvos Path)
|
||||
|
@ -50,7 +50,7 @@ PLATLDXFLAGS = -shared -lm
|
||||
################
|
||||
# libretro setup
|
||||
|
||||
RETRODEFS = -D__LIBRETRO__
|
||||
RETRODEFS = -D__LIBRETRO__ -DHAVE_STRLCPY
|
||||
RETROCFLAGS =
|
||||
RETROCXXFLAGS =
|
||||
RETROLDFLAGS =
|
||||
|
@ -50,7 +50,7 @@ PLATLDXFLAGS = -shared -lm
|
||||
################
|
||||
# libretro setup
|
||||
|
||||
RETRODEFS = -D__LIBRETRO__
|
||||
RETRODEFS = -D__LIBRETRO__ -DHAVE_STRLCPY
|
||||
RETROCFLAGS =
|
||||
RETROCXXFLAGS =
|
||||
RETROLDFLAGS =
|
||||
|
Loading…
Reference in New Issue
Block a user