This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH v2 1/3] Guard langinfo.h nl_item from multiple typedefs
- From: Yaakov Selkowitz <yselkowi at redhat dot com>
- To: cygwin-patches at cygwin dot com
- Cc: newlib at sourceware dot org
- Date: Fri, 19 Jan 2018 00:00:59 -0600
- Subject: [PATCH v2 1/3] Guard langinfo.h nl_item from multiple typedefs
- Authentication-results: sourceware.org; auth=none
- References: <20180119055837.13016-1-yselkowi@redhat.com>
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