[PATCH v2 1/3] Guard langinfo.h nl_item from multiple typedefs
Yaakov Selkowitz
yselkowi@redhat.com
Fri Jan 19 06:01:00 GMT 2018
This is a prerequisite of adding nl_types.h support to Cygwin.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
newlib/libc/include/langinfo.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/newlib/libc/include/langinfo.h b/newlib/libc/include/langinfo.h
index 59381d6b6..458b92565 100644
--- a/newlib/libc/include/langinfo.h
+++ b/newlib/libc/include/langinfo.h
@@ -36,7 +36,10 @@
#include <xlocale.h>
#endif
+#ifndef _NL_ITEM_DECLARED
typedef int nl_item;
+#define _NL_ITEM_DECLARED
+#endif
enum __nl_item
{
--
2.15.1
More information about the Cygwin-patches
mailing list