mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 13:05:44 +00:00
Yet another fix for GCC4.2
svn path=/trunk/; revision=25573
This commit is contained in:
parent
05e22f2f64
commit
243a44d2c0
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ unsigned int __unguarded_readlc_active;
|
||||||
int _current_category; /* used by setlocale */
|
int _current_category; /* used by setlocale */
|
||||||
const char *_current_locale;
|
const char *_current_locale;
|
||||||
|
|
||||||
int parse_locale(char *locale, char *lang, char *country, char *code_page);
|
int parse_locale(const char *locale, char *lang, char *country, char *code_page);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @unimplemented
|
* @unimplemented
|
||||||
|
@ -27,7 +27,7 @@ char *setlocale(int category, const char *locale)
|
||||||
char country[100];
|
char country[100];
|
||||||
char code_page[100];
|
char code_page[100];
|
||||||
if (NULL != locale) {
|
if (NULL != locale) {
|
||||||
parse_locale((char *)locale,lang,country,code_page);
|
parse_locale(locale,lang,country,code_page);
|
||||||
}
|
}
|
||||||
|
|
||||||
//printf("%s %s %s %s\n",locale,lang,country,code_page);
|
//printf("%s %s %s %s\n",locale,lang,country,code_page);
|
||||||
|
@ -63,7 +63,7 @@ locale "lang[_country[.code_page]]"
|
||||||
| NULL
|
| NULL
|
||||||
|
|
||||||
*/
|
*/
|
||||||
int parse_locale(char *locale, char *lang, char *country, char *code_page)
|
int parse_locale(const char *locale, char *lang, char *country, char *code_page)
|
||||||
{
|
{
|
||||||
while ( *locale != 0 && *locale != '.' && *locale != '_' )
|
while ( *locale != 0 && *locale != '.' && *locale != '_' )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue