File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#ifndef SIMDJSON_PORTABILITY_H
22#define SIMDJSON_PORTABILITY_H
33
4- #include < cstdint>
54#include < cstddef>
6- #include < cstdlib >
5+ #include < cstdint >
76#include < cstdio>
7+ #include < cstdlib>
88#ifdef _MSC_VER
99#include < iso646.h>
1010#endif
1717#endif
1818
1919// this is almost standard?
20- #define STRINGIFY (a ) #a
20+ #undef STRINGIFY_IMPLEMENTATION_
21+ #undef STRINGIFY
22+ #define STRINGIFY_IMPLEMENTATION_ (a ) #a
23+ #define STRINGIFY (a ) STRINGIFY_IMPLEMENTATION_ (a)
2124
2225// we are going to use runtime dispatch
2326#ifdef IS_X86_64
3740#define UNTARGET_REGION _Pragma (" GCC pop_options" )
3841#endif // clang then gcc
3942
40- #endif // x86
43+ #endif // x86
4144
4245// Default target region macros don't do anything.
4346#ifndef TARGET_REGION
5053#define TARGET_WESTMERE TARGET_REGION (" sse4.2,pclmul" )
5154#define TARGET_ARM64
5255
56+ // Threading is disabled
57+ #undef SIMDJSON_THREADS_ENABLED
5358// Is threading enabled?
5459#if defined(BOOST_HAS_THREADS) || defined(_REENTRANT) || defined(_MT)
55- #define SIMDJSON_THREADS_ENABLED 1
60+ #define SIMDJSON_THREADS_ENABLED
5661#endif
5762
5863#if defined(__clang__)
6772#include < intrin.h> // visual studio
6873#endif
6974
70-
7175#ifdef _MSC_VER
7276#define simdjson_strcasecmp _stricmp
7377#else
You can’t perform that action at this time.
0 commit comments