localename: Include necessary header files on Cygwin.
authorBruno Haible <bruno@clisp.org>
Thu, 18 May 2017 22:50:38 +0000 (00:50 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 18 May 2017 22:50:38 +0000 (00:50 +0200)
* lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
where NL_LOCALE_NAME is defined.

ChangeLog
lib/localename.c

index a33ad588e933f120cd83f1526366ba67704b30c2..f4a1d078184f1ec92733ce8cf7e56a3fca76348b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-05-18  Bruno Haible  <bruno@clisp.org>
+
+       localename: Include necessary header files on Cygwin.
+       * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
+       where NL_LOCALE_NAME is defined.
+
 2017-05-18  Bruno Haible  <bruno@clisp.org>
 
        gettext: Update macros from gettext git.
index 3ba9d08664a7ddc42cdb7d05a7216a454910d347..eb0755c6d9430b9681b240d0901a9fe71b3e4f7b 100644 (file)
@@ -40,7 +40,7 @@
 # if defined __APPLE__ && defined __MACH__
 #  include <xlocale.h>
 # endif
-# if __GLIBC__ >= 2 && !defined __UCLIBC__
+# if (__GLIBC__ >= 2 && !defined __UCLIBC__) || defined __CYGWIN__
 #  include <langinfo.h>
 # endif
 # if !defined IN_LIBINTL