[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] localename: Port to cygwin 2.6.
From: |
Bruno Haible |
Subject: |
Re: [PATCH] localename: Port to cygwin 2.6. |
Date: |
Fri, 19 May 2017 00:51:01 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-75-generic; KDE/5.18.0; x86_64; ; ) |
Eric Blake wrote on 2017-01-19:
> > * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
> > Cygwin.
It relies on the NL_LOCALE_NAME macro, which is defined in <langinfo.h>.
Better than to hope that it gets included by chance, include it explicitly.
2017-05-18 Bruno Haible <address@hidden>
localename: Include necessary header files on Cygwin.
* lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
where NL_LOCALE_NAME is defined.
diff --git a/lib/localename.c b/lib/localename.c
index 3ba9d08..eb0755c 100644
--- a/lib/localename.c
+++ b/lib/localename.c
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH] localename: Port to cygwin 2.6.,
Bruno Haible <=