From 10817a62c50ac24bf16d3ec6fda8c5152a53737e Mon Sep 17 00:00:00 2001 From: Yedidya Feldblum Date: Sun, 20 Oct 2024 16:44:52 -0700 Subject: [PATCH] in StringToFloatBenchmark, make strtod_l available under msvc Differential Revision: D64643995 fbshipit-source-id: 0feddf88b63679f9dd44177449625fae079f559a --- folly/test/StringToFloatBenchmark.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/folly/test/StringToFloatBenchmark.cpp b/folly/test/StringToFloatBenchmark.cpp index 164ef040184..cc9071df8cc 100644 --- a/folly/test/StringToFloatBenchmark.cpp +++ b/folly/test/StringToFloatBenchmark.cpp @@ -110,6 +110,10 @@ class PosixNumericLocale { }; } // namespace +#if defined(_WIN32) +constexpr auto strtod_l = _strtod_l; +#endif + BENCHMARK(hardcoded_decimal_notation_STRTOFL_COPY, n) { char* end; for (unsigned int i = 0; i < n; ++i) {