Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
katie_check_function(getpwnam_r "pwd.h")
katie_check_function(getpwuid_r "pwd.h")
katie_check_function(getgrgid_r "grp.h")
+katie_check_function(nl_langinfo "langinfo.h")
# XSI/POSIX.1-2001
katie_check_function(strerror_r "string.h")
# SUSv2
#include <stdlib.h>
#include <ctype.h>
#include <locale.h>
-#if defined(_XOPEN_UNIX)
+
+#if defined(QT_HAVE_NL_LANGINFO)
#include <langinfo.h>
#endif
}
-#if defined(_XOPEN_UNIX)
+#if defined(QT_HAVE_NL_LANGINFO)
if (!localeMapper) {
- const char *charset = nl_langinfo(CODESET);
+ const char *charset = ::nl_langinfo(CODESET);
if (charset)
localeMapper = QTextCodec::codecForName(charset);
}