Skip to content

Commit

Permalink
check C++ standard version before including <stdfloat>
Browse files Browse the repository at this point in the history
fixes #238
  • Loading branch information
wojdyr committed Feb 3, 2024
1 parent 8378916 commit 55a5b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fast_float/float_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <type_traits>
#include <system_error>
#ifdef __has_include
#if __has_include(<stdfloat>)
#if __has_include(<stdfloat>) && (__cplusplus > 202002L || _MSVC_LANG > 202002L)
#include <stdfloat>
#endif
#endif
Expand Down

0 comments on commit 55a5b3c

Please sign in to comment.