summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-07-10 14:36:16 +0300
committerTor Lillqvist <tml@iki.fi>2011-07-10 14:36:16 +0300
commit7902d2aaee8f934410670f006b79bebba0f56fa5 (patch)
treeb8bafa0eba54325f168083d34739f1663b0de9f7 /sal
parentdfdf2ee12e3a07c088264ac1c2e0d1a1a5342d6b (diff)
iOS is much like MacOSX
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/nlsupport.c6
-rw-r--r--sal/osl/unx/osxlocale.cxx2
2 files changed, 5 insertions, 3 deletions
diff --git a/sal/osl/unx/nlsupport.c b/sal/osl/unx/nlsupport.c
index eb0068269620..fa796e62d93a 100644
--- a/sal/osl/unx/nlsupport.c
+++ b/sal/osl/unx/nlsupport.c
@@ -35,13 +35,13 @@
defined(FREEBSD) || defined(MACOSX) || defined(IOS) || defined(OPENBSD) || \
defined(DRAGONFLY)
#include <pthread.h>
-#ifndef MACOSX
+#if !defined(MACOSX) && !defined(IOS)
#include <locale.h>
#include <langinfo.h>
#else
#include <osl/module.h>
#include <osl/thread.h>
-#endif /* !MACOSX */
+#endif /* !MACOSX && !IOS */
#endif /* LINUX || SOLARIS || NETBSD || MACOSX || IOS */
#include <string.h>
@@ -855,7 +855,7 @@ rtl_TextEncoding osl_getTextEncodingFromLocale( rtl_Locale * pLocale )
return RTL_TEXTENCODING_DONTKNOW;
}
-#ifdef MACOSX
+#if defined(MACOSX) || defined(IOS)
#include "system.h"
/* OS X locale discovery function */
diff --git a/sal/osl/unx/osxlocale.cxx b/sal/osl/unx/osxlocale.cxx
index c8bcc6dae756..78626d310da1 100644
--- a/sal/osl/unx/osxlocale.cxx
+++ b/sal/osl/unx/osxlocale.cxx
@@ -33,7 +33,9 @@
#include <assert.h>
#include <premac.h>
+#ifndef IOS
#include <CoreServices/CoreServices.h>
+#endif
#include <CoreFoundation/CoreFoundation.h>
#include <postmac.h>