diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-09-23 17:19:00 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-09-23 17:19:00 +0000 |
commit | c1754722eec7fc26cbecd8ba014cff19675b85b3 (patch) | |
tree | f41ab131daec157f56ac5ac02065a863f4fcdaad /newlib/libc | |
parent | 8e3607fceec5ab9fba7824fd080e22d024b99362 (diff) | |
download | cygnal-c1754722eec7fc26cbecd8ba014cff19675b85b3.tar.gz cygnal-c1754722eec7fc26cbecd8ba014cff19675b85b3.tar.bz2 cygnal-c1754722eec7fc26cbecd8ba014cff19675b85b3.zip |
* libc/locale/locale.c: Drop Cygwin-specific windows.h include.
(loadlocale): Call __set_charset_from_codepage with 0 codepage.
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/locale/locale.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c index a01b312f8..ef7a7e428 100644 --- a/newlib/libc/locale/locale.c +++ b/newlib/libc/locale/locale.c @@ -166,9 +166,6 @@ No supporting OS subroutines are required. #include <stdlib.h> #include <wchar.h> #include "../stdlib/local.h" -#ifdef __CYGWIN__ -#include <windows.h> -#endif #define _LC_LAST 7 #define ENCODING_LEN 31 @@ -468,7 +465,7 @@ loadlocale(struct _reent *p, int category) else if (c[0] == '\0' || c[0] == '@') /* End of string or just a modifier */ #ifdef __CYGWIN__ - __set_charset_from_codepage (GetACP (), charset); + __set_charset_from_codepage (0, charset); #else strcpy (charset, "ISO-8859-1"); #endif |