diff options
author | Luca Deri <deri@ntop.org> | 2021-10-06 09:28:04 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2021-10-06 09:28:04 +0200 |
commit | 2b4821a97b9169e9b9e96cbf69d84a23dc870fa2 (patch) | |
tree | 36cfd3828b01e95d01beffbb741fc4f821b413f8 | |
parent | d9c72999ee428d682e226d19f0e8cbd39721a642 (diff) |
Compilation fix for old Linux distributions
-rw-r--r-- | src/lib/third_party/src/roaring.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/third_party/src/roaring.cc b/src/lib/third_party/src/roaring.cc index cee8dd55e..e3fd63096 100644 --- a/src/lib/third_party/src/roaring.cc +++ b/src/lib/third_party/src/roaring.cc @@ -218,7 +218,7 @@ static inline uint32_t croaring_detect_supported_architectures() { return buffer; } #else // defined(__cplusplus) and defined(_MSC_VER) && !defined(__clang__) -#if defined(__GNUC_RH_RELEASE__) && (__GNUC_RH_RELEASE__ != 5) +#if (defined(__GNUC_RH_RELEASE__) && (__GNUC_RH_RELEASE__ != 5)) || (__GNUC__ < 5) #define ROARING_DISABLE_AVX #undef __AVX2__ /* CentOS 7 */ @@ -234,7 +234,7 @@ static inline uint32_t croaring_detect_supported_architectures() { } return buffer; } -#endif // defined(__GNUC_RH_RELEASE__) && (__GNUC_RH_RELEASE__ != 5) +#endif // (defined(__GNUC_RH_RELEASE__) && (__GNUC_RH_RELEASE__ != 5)) || (__GNUC__ < 5) #endif // defined(_MSC_VER) && !defined(__clang__) #ifdef ROARING_DISABLE_AVX @@ -324,7 +324,7 @@ extern "C" { // portability definitions are in global scope, not a namespace #undef CROARING_IS_X64 #endif -#if defined(__GNUC_RH_RELEASE__) && (__GNUC_RH_RELEASE__ != 5 /* RH 8 */) +#if (defined(__GNUC_RH_RELEASE__) && (__GNUC_RH_RELEASE__ != 5)) || (__GNUC__ < 5) /* RH 7 don't have atomic includes */ #undef CROARING_IS_X64 #endif |