diff mbox series

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

Message ID 20180119060059.6552-1-yselkowi@redhat.com
State New
Headers show
Series [v2,1/3] Guard langinfo.h nl_item from multiple typedefs | expand

Commit Message

Yaakov Selkowitz Jan. 19, 2018, 6 a.m. UTC
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(+)

-- 
2.15.1
diff mbox series

Patch

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
 {