public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Guard langinfo.h nl_item from multiple typedefs
@ 2018-01-19 19:19 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2018-01-19 19:19 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=bd62f539defbbd16f73e99ff20d2daa6d6c18d9e

commit bd62f539defbbd16f73e99ff20d2daa6d6c18d9e
Author: Yaakov Selkowitz <yselkowi@redhat.com>
Date:   Thu Jan 18 23:53:18 2018 -0600

    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>

Diff:
---
 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 59381d6..458b925 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
 {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-01-19 19:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-19 19:19 [newlib-cygwin] Guard langinfo.h nl_item from multiple typedefs Yaakov Selkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).