Add Android to conditionals around langinfo.h usage.
Despite being mandated by POSIX, Android does not support this. Change-Id: I3da42ff9b3336cb6657692a9eb70dd3118ac1756 Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
72c5ca98e5
commit
0688746154
@ -82,8 +82,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
#include <locale.h>
|
||||
#if defined (_XOPEN_UNIX) && !defined(Q_OS_QNX) && !defined(Q_OS_OSF)
|
||||
#include <langinfo.h>
|
||||
#if defined (_XOPEN_UNIX) && !defined(Q_OS_QNX) && \
|
||||
!defined(Q_OS_OSF) && !defined(Q_OS_LINUX_ANDROID)
|
||||
# include <langinfo.h>
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
@ -534,7 +535,8 @@ static void setupLocaleMapper()
|
||||
localeMapper = QTextCodec::codecForName("System");
|
||||
#endif
|
||||
|
||||
#if defined (_XOPEN_UNIX) && !defined(Q_OS_QNX) && !defined(Q_OS_OSF)
|
||||
#if defined (_XOPEN_UNIX) && !defined(Q_OS_QNX) && \
|
||||
!defined(Q_OS_OSF) && !defined(Q_OS_LINUX_ANDROID)
|
||||
if (!localeMapper) {
|
||||
char *charset = nl_langinfo (CODESET);
|
||||
if (charset)
|
||||
|
Loading…
Reference in New Issue
Block a user