diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-23 01:47:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-23 01:47:32 +0300 |
commit | 1a9ffd99f2b199501bf0f23e368bcd91d05fd277 (patch) | |
tree | 99839f7989acb92e17ae2f38c5ef10746d9d6d10 /src/localconsts.h | |
parent | ec242a61eac50c8fb41bd21b08827c79240f9ea4 (diff) | |
download | manaplus-1a9ffd99f2b199501bf0f23e368bcd91d05fd277.tar.gz manaplus-1a9ffd99f2b199501bf0f23e368bcd91d05fd277.tar.bz2 manaplus-1a9ffd99f2b199501bf0f23e368bcd91d05fd277.tar.xz manaplus-1a9ffd99f2b199501bf0f23e368bcd91d05fd277.zip |
Add macro for const attribute.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r-- | src/localconsts.h | 2 |
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 |