macOS and iOS need to have HAVE_STRLCPY defined

This commit is contained in:
twinaphex 2021-04-13 01:23:14 +02:00 committed by Vicki Pfau
parent a0f0828838
commit ed4b9607c2
3 changed files with 5 additions and 2 deletions

View File

@ -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)

View File

@ -50,7 +50,7 @@ PLATLDXFLAGS = -shared -lm
################
# libretro setup
RETRODEFS = -D__LIBRETRO__
RETRODEFS = -D__LIBRETRO__ -DHAVE_STRLCPY
RETROCFLAGS =
RETROCXXFLAGS =
RETROLDFLAGS =

View File

@ -50,7 +50,7 @@ PLATLDXFLAGS = -shared -lm
################
# libretro setup
RETRODEFS = -D__LIBRETRO__
RETRODEFS = -D__LIBRETRO__ -DHAVE_STRLCPY
RETROCFLAGS =
RETROCXXFLAGS =
RETROLDFLAGS =