summaryrefslogtreecommitdiffstats
path: root/src/common/config.h.cmake
diff options
context:
space:
mode:
authorDidier 'OdyX' Raboud <didier@raboud.com>2013-11-13 17:41:33 +0100
committerDidier 'OdyX' Raboud <didier@raboud.com>2013-11-13 17:41:41 +0100
commitd7af8204cec4ea91ed50d42b2db491b68416a750 (patch)
treed5bbfb4c6c43e8778db981a7801518221bd12101 /src/common/config.h.cmake
parentba8dcc887f3ece99c7ee48cc0b5400ddd180b415 (diff)
downloadcolobot-d7af8204cec4ea91ed50d42b2db491b68416a750.tar.gz
colobot-d7af8204cec4ea91ed50d42b2db491b68416a750.tar.bz2
colobot-d7af8204cec4ea91ed50d42b2db491b68416a750.zip
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
Diffstat (limited to 'src/common/config.h.cmake')
-rw-r--r--src/common/config.h.cmake5
1 files changed, 5 insertions, 0 deletions
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