File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 29
29
RAPIDJSON_NAMESPACE_BEGIN
30
30
namespace internal {
31
31
32
- #if defined(__has_builtin ) && __has_builtin (__builtin_clzll)
32
+ #if ( defined(__GNUC__ ) && __GNUC__ >= 4) || RAPIDJSON_HAS_BUILTIN (__builtin_clzll)
33
33
#define RAPIDJSON_CLZLL __builtin_clzll
34
34
#else
35
35
Original file line number Diff line number Diff line change @@ -490,6 +490,12 @@ RAPIDJSON_NAMESPACE_END
490
490
#define RAPIDJSON_VERSION_CODE (x,y,z ) \
491
491
(((x)*100000 ) + ((y)*100 ) + (z))
492
492
493
+ #if defined(__has_builtin)
494
+ #define RAPIDJSON_HAS_BUILTIN (x ) __has_builtin(x)
495
+ #else
496
+ #define RAPIDJSON_HAS_BUILTIN (x ) 0
497
+ #endif
498
+
493
499
// /////////////////////////////////////////////////////////////////////////////
494
500
// RAPIDJSON_DIAG_PUSH/POP, RAPIDJSON_DIAG_OFF
495
501
You can’t perform that action at this time.
0 commit comments