From 1a9ffd99f2b199501bf0f23e368bcd91d05fd277 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 23 Dec 2015 01:47:32 +0300 Subject: Add macro for const attribute. --- src/localconsts.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 -- cgit v1.2.3-60-g2f50