summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-17 17:55:43 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-17 17:55:43 +0300
commit07c3814e5e9c15dc0d5bdba9ba9a591e56116d7c (patch)
tree2dcff26849f6133d9a1e08e2601a2b2ec8cc9d2d /src/localconsts.h
parentfa1bd85d4461a0a35f8843ac0965e2de5fd6b27e (diff)
downloadmv-07c3814e5e9c15dc0d5bdba9ba9a591e56116d7c.tar.gz
mv-07c3814e5e9c15dc0d5bdba9ba9a591e56116d7c.tar.bz2
mv-07c3814e5e9c15dc0d5bdba9ba9a591e56116d7c.tar.xz
mv-07c3814e5e9c15dc0d5bdba9ba9a591e56116d7c.zip
add restrict keyword into dye class.
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