aboutsummaryrefslogtreecommitdiffstats
path: root/config.h.in
diff options
context:
space:
mode:
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