From 136033a8528352fb63fd25534de9fc10173a2576 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 13 May 2009 14:54:11 +0000 Subject: [PATCH] * libc/locale/locale.c (setlocale): Don't build on Cygwin. --- newlib/ChangeLog | 4 ++++ newlib/libc/locale/locale.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 08d0421f6..c8876719d 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2009-05-13 Corinna Vinschen + + * libc/locale/locale.c (setlocale): Don't build on Cygwin. + 2009-05-11 Craig Howland * libm/machine/i386/f_llrint.c: Remove llrint() definition. diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c index b5a0ee74c..444a5aca8 100644 --- a/newlib/libc/locale/locale.c +++ b/newlib/libc/locale/locale.c @@ -654,6 +654,7 @@ _DEFUN(_localeconv_r, (data), #ifndef _REENT_ONLY +#ifndef __CYGWIN__ char * _DEFUN(setlocale, (category, locale), int category _AND @@ -661,7 +662,7 @@ _DEFUN(setlocale, (category, locale), { return _setlocale_r (_REENT, category, locale); } - +#endif struct lconv * _DEFUN_VOID(localeconv) -- 2.43.5