From da80349f9c8cf087641705888ca7919be970b973 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 7 Sep 2017 02:18:14 +0200 Subject: [PATCH 1/2] Update --- core/cd_hw/libchdr/src/chd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/cd_hw/libchdr/src/chd.c b/core/cd_hw/libchdr/src/chd.c index b6738d9..36200a6 100644 --- a/core/cd_hw/libchdr/src/chd.c +++ b/core/cd_hw/libchdr/src/chd.c @@ -41,6 +41,8 @@ #include #include #include +#include "types.h" +#include "osd.h" #include "chd.h" #include "cdrom.h" #include "flac.h" From a7e94e3870f64470464452d237e7cc323602eff8 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 7 Sep 2017 02:25:35 +0200 Subject: [PATCH 2/2] Fix build --- Makefile.libretro | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile.libretro b/Makefile.libretro index bf8e7e8..107ddd4 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -2,6 +2,7 @@ DEBUG = 0 LOGSOUND = 0 FRONTEND_SUPPORTS_RGB565 = 1 HAVE_CHD = 1 +HAVE_SYS_PARAM = 1 CORE_DIR := . @@ -139,6 +140,7 @@ else ifneq (,$(filter $(platform), ps3 sncps3 psl1ght)) PLATFORM_DEFINES := -D__CELLOS_LV2 -DALT_RENDER ENDIANNESS_DEFINES := -DBYTE_ORDER=BIG_ENDIAN -DBYTE_ORDER=BIG_ENDIAN -DCPU_IS_BIG_ENDIAN=1 -DWORDS_BIGENDIAN=1 STATIC_LINKING = 1 + HAVE_SYS_PARAM = 0 # sncps3 ifneq (,$(findstring sncps3,$(platform))) @@ -242,6 +244,8 @@ else ifeq ($(platform), windows_msvc2010_x64) CC = cl.exe CXX = cl.exe +HAVE_SYS_PARAM = 0 + PATH := $(shell IFS=$$'\n'; cygpath "$(VS100COMNTOOLS)../../VC/bin/amd64"):$(PATH) PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VS100COMNTOOLS)../IDE") LIB := $(shell IFS=$$'\n'; cygpath "$(VS100COMNTOOLS)../../VC/lib/amd64") @@ -266,6 +270,8 @@ else ifeq ($(platform), windows_msvc2010_x86) CC = cl.exe CXX = cl.exe + HAVE_SYS_PARAM = 0 + PATH := $(shell IFS=$$'\n'; cygpath "$(VS100COMNTOOLS)../../VC/bin"):$(PATH) PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VS100COMNTOOLS)../IDE") LIB := $(shell IFS=$$'\n'; cygpath -w "$(VS100COMNTOOLS)../../VC/lib") @@ -290,6 +296,8 @@ else ifeq ($(platform), windows_msvc2005_x86) CC = cl.exe CXX = cl.exe + HAVE_SYS_PARAM = 0 + PATH := $(shell IFS=$$'\n'; cygpath "$(VS80COMNTOOLS)../../VC/bin"):$(PATH) PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VS80COMNTOOLS)../IDE") INCLUDE := $(shell IFS=$$'\n'; cygpath "$(VS80COMNTOOLS)../../VC/include") @@ -349,7 +357,7 @@ ifeq ($(HAVE_CHD), 1) endif -ifeq (,$(filter $(platform), ps3 sncps3 psl1ght)) +ifeq ($(HAVE_SYS_PARAM), 1) DEFINES += -DHAVE_SYS_PARAM_H else DEFINES += -Dflac_max=MAX -Dflac_min=MIN -Dfseeko=fseek -Dftello=ftell