Use RADIXCHAR, which is the portable variant of DECIMAL_POINT.
This commit is contained in:
parent
8255dd3ed6
commit
4096552c26
@ -174,7 +174,7 @@ void CompilerGLSL::init()
|
|||||||
current_locale_radix_character = *conv->decimal_point;
|
current_locale_radix_character = *conv->decimal_point;
|
||||||
#else
|
#else
|
||||||
// localeconv, the portable function is not MT safe ...
|
// localeconv, the portable function is not MT safe ...
|
||||||
const char *decimal_point = nl_langinfo(DECIMAL_POINT);
|
const char *decimal_point = nl_langinfo(RADIXCHAR);
|
||||||
if (decimal_point && *decimal_point != '\0')
|
if (decimal_point && *decimal_point != '\0')
|
||||||
current_locale_radix_character = *decimal_point;
|
current_locale_radix_character = *decimal_point;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user