aboutsummaryrefslogtreecommitdiffstats
path: root/config.h.in
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-17 20:48:30 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-17 20:48:30 +0100
commit95645818062dffd97fc1f71f073501d11c49492f (patch)
tree752554b0aa64a107f22517eec89bdf95678332f1 /config.h.in
parent6ea707966a87b98386250f43f6c4b2d840e0c5d2 (diff)
downloadrspamd-95645818062dffd97fc1f71f073501d11c49492f.tar.gz
rspamd-95645818062dffd97fc1f71f073501d11c49492f.zip
[Minor] Add const attribute
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in6
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