mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 16:56:57 +08:00
Running new tests only on sane platforms.
This commit is contained in:
parent
cb26cedb1c
commit
10a58cd69f
@ -22,14 +22,17 @@
|
|||||||
#endif
|
#endif
|
||||||
#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.
|
// C++ 17 because it is otherwise annoying to browse all files in a directory.
|
||||||
// We also only run these tests on little endian systems.
|
// 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 <iostream>
|
#include <iostream>
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <charconv>
|
#include <charconv>
|
||||||
|
|
||||||
|
|
||||||
// return true on succcess
|
// return true on succcess
|
||||||
bool check_file(std::string file_name) {
|
bool check_file(std::string file_name) {
|
||||||
std::cout << "Checking " << file_name << std::endl;
|
std::cout << "Checking " << file_name << std::endl;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user