mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 04:13:01 +00:00
[UCRT] Fix non-standard extern "C" usage
This commit is contained in:
parent
9ed5151de9
commit
ffd69754f9
27 changed files with 104 additions and 102 deletions
|
@ -14,13 +14,13 @@
|
|||
|
||||
|
||||
/* pointer to original static to avoid freeing */
|
||||
extern "C" char __acrt_lconv_static_decimal []{"."};
|
||||
extern "C" char __acrt_lconv_static_null []{""};
|
||||
extern "C" wchar_t __acrt_lconv_static_W_decimal[]{L"."};
|
||||
extern "C" wchar_t __acrt_lconv_static_W_null []{L""};
|
||||
extern "C" { char __acrt_lconv_static_decimal []{"."}; }
|
||||
extern "C" { char __acrt_lconv_static_null []{""}; }
|
||||
extern "C" { wchar_t __acrt_lconv_static_W_decimal[]{L"."}; }
|
||||
extern "C" { wchar_t __acrt_lconv_static_W_null []{L""}; }
|
||||
|
||||
/* lconv settings for "C" locale */
|
||||
extern "C" struct lconv __acrt_lconv_c
|
||||
extern "C" { struct lconv __acrt_lconv_c
|
||||
{
|
||||
__acrt_lconv_static_decimal, // decimal_point
|
||||
__acrt_lconv_static_null, // thousands_sep
|
||||
|
@ -48,12 +48,12 @@ extern "C" struct lconv __acrt_lconv_c
|
|||
__acrt_lconv_static_W_null, // _W_mon_thousands_sep
|
||||
__acrt_lconv_static_W_null, // _W_positive_sign
|
||||
__acrt_lconv_static_W_null, // _W_negative_sign
|
||||
};
|
||||
}; }
|
||||
|
||||
|
||||
/* pointer to current lconv structure */
|
||||
|
||||
extern "C" struct lconv* __acrt_lconv{&__acrt_lconv_c};
|
||||
extern "C" { struct lconv* __acrt_lconv{&__acrt_lconv_c}; }
|
||||
|
||||
/***
|
||||
*struct lconv *localeconv(void) - Return the numeric formatting convention
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue