summaryrefslogtreecommitdiff
path: root/src/sna/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sna/compiler.h')
-rw-r--r--src/sna/compiler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/compiler.h b/src/sna/compiler.h
index bd84973b..364ea62f 100644
--- a/src/sna/compiler.h
+++ b/src/sna/compiler.h
@@ -34,12 +34,14 @@
#define noinline __attribute__((noinline))
#define fastcall __attribute__((regparm(3)))
#define must_check __attribute__((warn_unused_result))
+#define constant __attribute__((const))
#else
#define likely(expr) (expr)
#define unlikely(expr) (expr)
#define noinline
#define fastcall
#define must_check
+#define constant
#endif
#ifdef HAVE_VALGRIND