From d7af8204cec4ea91ed50d42b2db491b68416a750 Mon Sep 17 00:00:00 2001 From: Didier 'OdyX' Raboud Date: Wed, 13 Nov 2013 17:41:33 +0100 Subject: On MacOSX, assume we do have CFLocaleCopyCurrent to detect the actual locale by hard-coding the fact in config.h.cmake This circumvents the fact that we are using localename.c directly instead of relying on the autotools-generated config.h --- src/common/config.h.cmake | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/common') diff --git a/src/common/config.h.cmake b/src/common/config.h.cmake index 2f403fa..63cd93b 100644 --- a/src/common/config.h.cmake +++ b/src/common/config.h.cmake @@ -6,6 +6,11 @@ #cmakedefine PLATFORM_MACOSX @PLATFORM_MACOSX@ #cmakedefine PLATFORM_OTHER @PLATFORM_OTHER@ +#ifdef PLATFORM_MACOSX +// Assume we have the Mac OS X function CFLocaleCopyCurrent in the CoreFoundation framework +#define HAVE_CFLOCALECOPYCURRENT 1 +#endif + #cmakedefine GLEW_STATIC #cmakedefine OPENAL_SOUND -- cgit v1.2.3-1-g7c22