summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index 4187cefd2..f29068c4c 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -64,11 +64,13 @@
#define A_UNUSED __attribute__ ((unused))
#define A_WARN_UNUSED __attribute__ ((warn_unused_result))
#define DEPRECATED __attribute__ ((deprecated))
+#define restrict __restrict__
#else
#define A_UNUSED
#define A_WARN_UNUSED
#define gnu_printf printf
#define DEPRECATED
+#define restrict
#endif
#ifdef __clang__
#define gnu_printf printf