Sane systems should have filesystem

This commit is contained in:
Daniel Lemire 2021-01-27 20:24:56 -05:00
parent ab40533b27
commit 00591a8652

View File

@ -26,6 +26,16 @@
#if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(sun) || defined(__sun)
#define FASTFLOAT_ODDPLATFORM 1
#endif
#if defined __has_include
#if __has_include (<filesystem>)
#else
#define FASTFLOAT_ODDPLATFORM 1
#endif
#else
#define FASTFLOAT_ODDPLATFORM 1
#endif
// C++ 17 because it is otherwise annoying to browse all files in a directory.
// We also only run these tests on little endian systems.
#if (FASTFLOAT_CPLUSPLUS >= 201703L) && (FASTFLOAT_IS_BIG_ENDIAN == 0) && !defined(FASTFLOAT_ODDPLATFORM)