From 4096552c26e69354d29b78d66470839a9fa6ad07 Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Thu, 28 Feb 2019 12:32:52 +0100 Subject: [PATCH] Use RADIXCHAR, which is the portable variant of DECIMAL_POINT. --- spirv_glsl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spirv_glsl.cpp b/spirv_glsl.cpp index d88e5eeb..887685b7 100644 --- a/spirv_glsl.cpp +++ b/spirv_glsl.cpp @@ -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