Use dirent_portable.h only in MSVC
This commit is contained in:
parent
60ee5fc844
commit
977e1a94b2
|
@ -9,7 +9,12 @@
|
|||
#define JSON_TEST_NUMBERS
|
||||
#endif
|
||||
|
||||
#include "dirent_portable.h"
|
||||
#ifndef _MSC_VER
|
||||
#include <dirent.h>
|
||||
#else
|
||||
// Microsoft can't be bothered to provide standard utils.
|
||||
#include <dirent_portable.h>
|
||||
#endif
|
||||
#include "simdjson.h"
|
||||
|
||||
// ulp distance
|
||||
|
|
|
@ -12,7 +12,12 @@
|
|||
#define JSON_TEST_STRINGS
|
||||
#endif
|
||||
|
||||
#include "dirent_portable.h"
|
||||
#ifndef _MSC_VER
|
||||
#include <dirent.h>
|
||||
#else
|
||||
// Microsoft can't be bothered to provide standard utils.
|
||||
#include <dirent_portable.h>
|
||||
#endif
|
||||
#include "simdjson.h"
|
||||
|
||||
char *fullpath;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
add_library(simdjson-windows-headers INTERFACE)
|
||||
if(MSVC)
|
||||
target_include_directories(simdjson-windows-headers INTERFACE .)
|
||||
endif()
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue