mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-13 23:50:08 +00:00
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;
|
||||
#else
|
||||
// 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')
|
||||
current_locale_radix_character = *decimal_point;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user