diff --git a/tests/basictest.cpp b/tests/basictest.cpp index 17e1f8e..7abcc9e 100644 --- a/tests/basictest.cpp +++ b/tests/basictest.cpp @@ -22,14 +22,17 @@ #endif #endif + +#if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(sun) || defined(__sun) +#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) +#if (FASTFLOAT_CPLUSPLUS >= 201703L) && (FASTFLOAT_IS_BIG_ENDIAN == 0) && !defined(FASTFLOAT_ODDPLATFORM) #include #include #include - // return true on succcess bool check_file(std::string file_name) { std::cout << "Checking " << file_name << std::endl;