public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowitz@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Guard langinfo.h nl_item from multiple typedefs Date: Fri, 19 Jan 2018 19:19:00 -0000 [thread overview] Message-ID: <20180119191939.21292.qmail@sourceware.org> (raw) 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 {
reply other threads:[~2018-01-19 19:19 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20180119191939.21292.qmail@sourceware.org \ --to=yselkowitz@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).