File tree 1 file changed +10
-6
lines changed 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
#ifndef SIMDJSON_PORTABILITY_H
2
2
#define SIMDJSON_PORTABILITY_H
3
3
4
- #include < cstdint>
5
4
#include < cstddef>
6
- #include < cstdlib >
5
+ #include < cstdint >
7
6
#include < cstdio>
7
+ #include < cstdlib>
8
8
#ifdef _MSC_VER
9
9
#include < iso646.h>
10
10
#endif
17
17
#endif
18
18
19
19
// 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)
21
24
22
25
// we are going to use runtime dispatch
23
26
#ifdef IS_X86_64
37
40
#define UNTARGET_REGION _Pragma (" GCC pop_options" )
38
41
#endif // clang then gcc
39
42
40
- #endif // x86
43
+ #endif // x86
41
44
42
45
// Default target region macros don't do anything.
43
46
#ifndef TARGET_REGION
50
53
#define TARGET_WESTMERE TARGET_REGION (" sse4.2,pclmul" )
51
54
#define TARGET_ARM64
52
55
56
+ // Threading is disabled
57
+ #undef SIMDJSON_THREADS_ENABLED
53
58
// Is threading enabled?
54
59
#if defined(BOOST_HAS_THREADS) || defined(_REENTRANT) || defined(_MT)
55
- #define SIMDJSON_THREADS_ENABLED 1
60
+ #define SIMDJSON_THREADS_ENABLED
56
61
#endif
57
62
58
63
#if defined(__clang__)
67
72
#include < intrin.h> // visual studio
68
73
#endif
69
74
70
-
71
75
#ifdef _MSC_VER
72
76
#define simdjson_strcasecmp _stricmp
73
77
#else
You can’t perform that action at this time.
0 commit comments