File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ include(${PROJECT_SOURCE_DIR}/tests/add_cpp_test.cmake)
4242#
4343# These tests explicitly do #include "simdjson.cpp" so they can override stuff
4444#
45- if ( NOT MSVC ) # Can't get simdjson-source to compile on Windows for some reason.
46- add_cpp_test (numberparsingcheck LABELS acceptance per_implementation )
47- target_link_libraries (numberparsingcheck simdjson-include-source )
48- add_cpp_test (stringparsingcheck LABELS acceptance per_implementation )
49- target_link_libraries (stringparsingcheck simdjson-include-source )
50- endif ( )
45+ add_cpp_test ( numberparsingcheck LABELS acceptance per_implementation )
46+ target_link_libraries (numberparsingcheck simdjson-include-source simdjson-windows-headers )
47+ target_compile_definitions (numberparsingcheck PRIVATE NOMINMAX )
48+ add_cpp_test (stringparsingcheck LABELS acceptance per_implementation )
49+ target_link_libraries (stringparsingcheck simdjson-include-source simdjson-windows-headers )
50+ target_compile_definitions ( stringparsingcheck PRIVATE NOMINMAX )
5151
5252# All remaining tests link with simdjson proper
5353link_libraries (simdjson )
Original file line number Diff line number Diff line change 11#include < cstring>
2- #include < dirent.h>
32#include < inttypes.h>
43#include < math.h>
54#include < stdbool.h>
109#define JSON_TEST_NUMBERS
1110#endif
1211
12+ #ifndef _MSC_VER
13+ #include < dirent.h>
14+ #else
15+ #include < dirent_portable.h>
16+ #endif
1317#include " simdjson.h"
1418
1519// ulp distance
Original file line number Diff line number Diff line change 11#include < cassert>
22#include < climits>
33#include < cstring>
4- #include < dirent.h>
54#include < inttypes.h>
65#include < iostream>
76#include < math.h>
1312#define JSON_TEST_STRINGS
1413#endif
1514
15+ #ifndef _MSC_VER
16+ #include < dirent.h>
17+ #else
18+ #include < dirent_portable.h>
19+ #endif
1620#include " simdjson.h"
1721
1822char *fullpath;
Original file line number Diff line number Diff line change 11add_library (simdjson-windows-headers INTERFACE )
22if (MSVC )
33 target_include_directories (simdjson-windows-headers INTERFACE . )
4- endif ()
4+ endif ()
You can’t perform that action at this time.
0 commit comments