This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH v2 1/3] Guard langinfo.h nl_item from multiple typedefs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]