From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28699 invoked by alias); 25 Aug 2016 07:55:29 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 28635 invoked by uid 9078); 25 Aug 2016 07:55:28 -0000 Date: Thu, 25 Aug 2016 07:55:00 -0000 Message-ID: <20160825075528.28633.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Use struct __locale_t * for reentrent locale functions X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: 448b46397dcea17e97783b0311b6d9af6878001c X-Git-Newrev: 14228e2d0fe69ff12290f8859d14eecb4095396f X-SW-Source: 2016-q3/txt/msg00073.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=14228e2d0fe69ff12290f8859d14eecb4095396f commit 14228e2d0fe69ff12290f8859d14eecb4095396f Author: Corinna Vinschen 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 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