Merge pull request #239 from wojdyr/main

check C++ standard version before including <stdfloat>
This commit is contained in:
Daniel Lemire 2024-02-03 11:30:06 -05:00 committed by GitHub
commit 4b035185e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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