Skip to content

Commit

Permalink
in StringToFloatBenchmark, make strtod_l available under msvc
Browse files Browse the repository at this point in the history
Differential Revision: D64643995

fbshipit-source-id: 0feddf88b63679f9dd44177449625fae079f559a
  • Loading branch information
yfeldblum authored and facebook-github-bot committed Oct 20, 2024
1 parent d7366a4 commit 10817a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions folly/test/StringToFloatBenchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 10817a6

Please sign in to comment.