diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-17 20:48:30 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-17 20:48:30 +0100 |
commit | 95645818062dffd97fc1f71f073501d11c49492f (patch) | |
tree | 752554b0aa64a107f22517eec89bdf95678332f1 /config.h.in | |
parent | 6ea707966a87b98386250f43f6c4b2d840e0c5d2 (diff) | |
download | rspamd-95645818062dffd97fc1f71f073501d11c49492f.tar.gz rspamd-95645818062dffd97fc1f71f073501d11c49492f.zip |
[Minor] Add const attribute
Diffstat (limited to 'config.h.in')
-rw-r--r-- | config.h.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in index adb799864..b4e16ead9 100644 --- a/config.h.in +++ b/config.h.in @@ -430,6 +430,12 @@ extern uint64_t ottery_rand_uint64(void); #error incompatible compiler found, need gcc > 2.7 or clang #endif +#ifdef __GNUC__ +#define RSPAMD_CONST_FUNCTION __attribute__ ((const)) +#else +#define RSPAMD_CONST_FUNCTION +#endif + #define HAVE_OPENSSL 1 #define HAVE_MATH_H 1 |