diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-01 13:07:43 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-01 13:07:43 +0000 |
commit | 41dc9d8afff3b11110e190a6869959f415b8dc7b (patch) | |
tree | 4e0edb9879a2c3818cf8e8d17d28a6fa483a94a1 /contrib/mumhash | |
parent | f0615c9cb4b72c25d32e818e86bc030810fa00e7 (diff) | |
download | rspamd-41dc9d8afff3b11110e190a6869959f415b8dc7b.tar.gz rspamd-41dc9d8afff3b11110e190a6869959f415b8dc7b.zip |
[Minor] Improve portability
Diffstat (limited to 'contrib/mumhash')
-rw-r--r-- | contrib/mumhash/mum.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/mumhash/mum.h b/contrib/mumhash/mum.h index ae6eec16c..9fab8e7bc 100644 --- a/contrib/mumhash/mum.h +++ b/contrib/mumhash/mum.h @@ -62,7 +62,7 @@ typedef unsigned __int64 uint64_t; /* In GCC uint128_t is defined if HOST_BITS_PER_WIDE_INT >= 64. HOST_WIDE_INT is long if HOST_BITS_PER_LONG > HOST_BITS_PER_INT, otherwise int. */ -#if defined(__GNUC__) && UINT_MAX != ULONG_MAX +#ifdef __SIZEOF_INT128__ #define _MUM_USE_INT128 1 #else #define _MUM_USE_INT128 0 @@ -73,7 +73,7 @@ typedef unsigned __int64 uint64_t; #define _MUM_FRESH_GCC #endif -#if defined(__GNUC__) && !defined(__llvm__) +#if !defined(__llvm__) && defined(_MUM_FRESH_GCC) #define _MUM_ATTRIBUTE_UNUSED __attribute__((unused)) #define _MUM_OPTIMIZE(opts) __attribute__((__optimize__ (opts))) #define _MUM_TARGET(opts) __attribute__((__target__ (opts))) |