From 356a58a95e1decfad1f3f6608b9338812175dd64 Mon Sep 17 00:00:00 2001 From: kwyxz Date: Mon, 29 Jan 2018 06:03:46 +0000 Subject: [PATCH] Removing -DHAVE_LOCALE for Haiku allows build --- Makefile.libretro | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile.libretro b/Makefile.libretro index c7ff041b1..bf3ff385c 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -81,7 +81,13 @@ ifneq (,$(findstring unix,$(platform))) TARGET := $(TARGET_NAME)_libretro.so fpic := -fPIC SHARED := -shared -Wl,-version-script=link.T - DEFINES += -std=c99 -D_GNU_SOURCE -DHAVE_LOCALE + + ifneq ($(findstring Haiku,$(shell uname -s)),) + # Haiku does not handle locales like Linux + DEFINES += -std=c99 -D_GNU_SOURCE + else + DEFINES += -std=c99 -D_GNU_SOURCE -DHAVE_LOCALE + endif # Raspberry Pi 3 ifneq (,$(findstring rpi3,$(platform)))