diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2019-11-08 15:04:35 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2019-11-08 15:04:35 +0200 |
commit | 5d6ff7f2a28ea0a0f67e5ec1195f6cc02fe9ab5d (patch) | |
tree | 70f09198755b33f8a759cf02b65520d8b63a58e5 | |
parent | a22d0b51090f4c0f3bab17c6054fef78d85b2ff1 (diff) |
Fix MinGW/clang/LLD/UCRT build.
-rw-r--r-- | core/ustring.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp index 7850c6774c..0f82ca7e15 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -1338,13 +1338,13 @@ String String::num_scientific(double p_num) { #if defined(__GNUC__) || defined(_MSC_VER) -#if (defined(__MINGW32__) || (defined(_MSC_VER) && _MSC_VER < 1900)) && defined(_TWO_DIGIT_EXPONENT) +#if (defined(__MINGW32__) || (defined(_MSC_VER) && _MSC_VER < 1900)) && defined(_TWO_DIGIT_EXPONENT) && !defined(_UCRT) // MinGW and old MSC require _set_output_format() to conform to C99 output for printf unsigned int old_exponent_format = _set_output_format(_TWO_DIGIT_EXPONENT); #endif snprintf(buf, 256, "%lg", p_num); -#if (defined(__MINGW32__) || (defined(_MSC_VER) && _MSC_VER < 1900)) && defined(_TWO_DIGIT_EXPONENT) +#if (defined(__MINGW32__) || (defined(_MSC_VER) && _MSC_VER < 1900)) && defined(_TWO_DIGIT_EXPONENT) && !defined(_UCRT) _set_output_format(old_exponent_format); #endif |