public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] include/locale.h: Fix POSIX guards
@ 2016-08-15  9:26 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2016-08-15  9:26 UTC (permalink / raw)
  To: newlib-cvs

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

commit a2ed50381e4ea521ba29df5d9a36be8773fe3743
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Sat Jul 23 14:19:52 2016 +0200

    include/locale.h: Fix POSIX guards
    
    Signed-off by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 newlib/libc/include/locale.h | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/newlib/libc/include/locale.h b/newlib/libc/include/locale.h
index d60132c..95e27e7 100644
--- a/newlib/libc/include/locale.h
+++ b/newlib/libc/include/locale.h
@@ -21,6 +21,7 @@
 #define LC_MESSAGES 6
 
 #if __POSIX_VISIBLE >= 200809
+
 #define LC_ALL_MASK		(1 << LC_ALL)
 #define LC_COLLATE_MASK		(1 << LC_COLLATE)
 #define LC_CTYPE_MASK		(1 << LC_CTYPE)
@@ -33,7 +34,8 @@
 
 struct __locale_t;
 typedef struct __locale_t *locale_t;
-#endif
+
+#endif /* __POSIX_VISIBLE >= 200809 */
 
 _BEGIN_STD_C
 
@@ -69,12 +71,15 @@ struct _reent;
 char *_EXFUN(_setlocale_r,(struct _reent *, int, const char *));
 struct lconv *_EXFUN(_localeconv_r,(struct _reent *));
 
+#if __POSIX_VISIBLE >= 200809
+
 locale_t _newlocale_r (struct _reent *, int, const char *, locale_t);
 void _freelocale_r (struct _reent *, locale_t);
 locale_t _duplocale_r (struct _reent *, locale_t);
 locale_t _uselocale_r (struct _reent *, locale_t);
 
 #ifndef _REENT_ONLY
+
 char *_EXFUN(setlocale,(int, const char *));
 struct lconv *_EXFUN(localeconv,(void));
 
@@ -82,7 +87,10 @@ locale_t newlocale (int, const char *, locale_t);
 void freelocale (locale_t);
 locale_t duplocale (locale_t);
 locale_t uselocale (locale_t);
-#endif
+
+#endif /* _REENT_ONLY */
+
+#endif /* __POSIX_VISIBLE >= 200809 */
 
 _END_STD_C


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

only message in thread, other threads:[~2016-08-15  9:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-15  9:26 [newlib-cygwin] include/locale.h: Fix POSIX guards Corinna Vinschen

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).