diff options
author | Thierry Fournier <thierry.fournier@ozon.io> | 2020-03-08 10:16:13 +0100 |
---|---|---|
committer | Thierry Fournier <thierry.fournier@ozon.io> | 2020-03-09 13:39:03 +0100 |
commit | 1f45648464d0bfac478443caf887c1e1c22caaff (patch) | |
tree | e9381330dfdf8176e6818d16123d2c03805c661e /config.h.in | |
parent | ce34e87a1f86ed33e0653f4d6f55bfea9ee3e93d (diff) | |
download | rspamd-1f45648464d0bfac478443caf887c1e1c22caaff.tar.gz rspamd-1f45648464d0bfac478443caf887c1e1c22caaff.zip |
[Minor] Compilation error with __has_attribuute operator
GCC recommands to add alternative to __has_attribute operator:
https://gcc.gnu.org/onlinedocs/cpp/_005f_005fhas_005fattribute.html
Diffstat (limited to 'config.h.in')
-rw-r--r-- | config.h.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/config.h.in b/config.h.in index cad62df81..013a0873c 100644 --- a/config.h.in +++ b/config.h.in @@ -375,8 +375,12 @@ typedef off_t goffset; # endif #elif defined(__GNUC__) /* GCC based */ -# if __has_attribute(__no_sanitize_address__) -# define RSPAMD_NO_SANITIZE __attribute__((no_sanitize_address)) +# if defined(__has_attribute) +# if __has_attribute(__no_sanitize_address__) +# define RSPAMD_NO_SANITIZE __attribute__((no_sanitize_address)) +# else +# define RSPAMD_NO_SANITIZE +# endif # else # define RSPAMD_NO_SANITIZE # endif |