@@ -393,8 +393,15 @@ namespace
393
393
{
394
394
return _snwprintf_s_l (ptr, n, _TRUNCATE, L" %I64u" , utility::details::scoped_c_thread_locale::c_locale (), val64);
395
395
}
396
+ static double anystod (const char * str)
397
+ {
398
+ return _strtod_l (str, nullptr , utility::details::scoped_c_thread_locale::c_locale ());
399
+ }
400
+ static double anystod (const wchar_t * str)
401
+ {
402
+ return _wcstod_l (str, nullptr , utility::details::scoped_c_thread_locale::c_locale ());
403
+ }
396
404
#else
397
-
398
405
static int __attribute__ ((__unused__)) print_llu(char * ptr, size_t n, unsigned long long val64)
399
406
{
400
407
return snprintf (ptr, n, " %llu" , val64);
@@ -403,24 +410,15 @@ namespace
403
410
{
404
411
return snprintf (ptr, n, " %lu" , val64);
405
412
}
406
- #endif
407
-
408
- static double anystod (const char * str)
413
+ static double __attribute__ ((__unused__)) anystod(const char * str)
409
414
{
410
- #ifdef _MS_WINDOWS
411
- return _strtod_l (str, nullptr , utility::details::scoped_c_thread_locale::c_locale ());
412
- #else
413
415
return strtod (str, nullptr );
414
- #endif
415
416
}
416
- static double anystod (const wchar_t * str)
417
+ static double __attribute__ ((__unused__)) anystod(const wchar_t * str)
417
418
{
418
- #ifdef _MS_WINDOWS
419
- return _wcstod_l (str, nullptr , utility::details::scoped_c_thread_locale::c_locale ());
420
- #else
421
419
return wcstod (str, nullptr );
422
- #endif
423
420
}
421
+ #endif
424
422
}
425
423
426
424
template <typename CharType>
0 commit comments