public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Use struct __locale_t * for reentrent locale functions
@ 2016-08-25  7:55 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2016-08-25  7:55 UTC (permalink / raw)
  To: newlib-cvs

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

commit 14228e2d0fe69ff12290f8859d14eecb4095396f
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Thu Aug 25 09:53:01 2016 +0200

    Use struct __locale_t * for reentrent locale functions
    
    This fixes a build problem since locale_t is only defined if
    __POSIX_VISIBLE >= 200809.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

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

diff --git a/newlib/libc/include/locale.h b/newlib/libc/include/locale.h
index 4fb7875..446dbd9 100644
--- a/newlib/libc/include/locale.h
+++ b/newlib/libc/include/locale.h
@@ -71,10 +71,10 @@ struct _reent;
 char *_EXFUN(_setlocale_r,(struct _reent *, int, const char *));
 struct lconv *_EXFUN(_localeconv_r,(struct _reent *));
 
-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);
+locale_t _newlocale_r (struct _reent *, int, const char *, struct __locale_t *);
+void _freelocale_r (struct _reent *, struct __locale_t *);
+locale_t _duplocale_r (struct _reent *, struct __locale_t *);
+locale_t _uselocale_r (struct _reent *, struct __locale_t *);
 
 #ifndef _REENT_ONLY


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

only message in thread, other threads:[~2016-08-25  7:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-25  7:55 [newlib-cygwin] Use struct __locale_t * for reentrent locale functions 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).