summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-23 01:47:32 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-23 01:47:32 +0300
commit1a9ffd99f2b199501bf0f23e368bcd91d05fd277 (patch)
tree99839f7989acb92e17ae2f38c5ef10746d9d6d10 /src
parentec242a61eac50c8fb41bd21b08827c79240f9ea4 (diff)
downloadmv-1a9ffd99f2b199501bf0f23e368bcd91d05fd277.tar.gz
mv-1a9ffd99f2b199501bf0f23e368bcd91d05fd277.tar.bz2
mv-1a9ffd99f2b199501bf0f23e368bcd91d05fd277.tar.xz
mv-1a9ffd99f2b199501bf0f23e368bcd91d05fd277.zip
Add macro for const attribute.
Diffstat (limited to 'src')
-rw-r--r--src/localconsts.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index 013f11507..c691abd26 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -80,6 +80,8 @@
#define A_WARN_UNUSED __attribute__ ((warn_unused_result))
#define DEPRECATED __attribute__ ((deprecated))
#define restrict __restrict__
+#define A_CONST __attribute__ ((const))
+#define A_PURE __attribute__ ((pure))
#ifdef __INTEL_COMPILER
#define RETURNS_NONNULL