From: Russell Bryant Date: Fri, 28 Jul 2006 23:30:18 +0000 (+0000) Subject: the pure attribute was not implemented before gcc 2.96. Since we have this X-Git-Tag: 1.4.0-beta1~495 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=99f9d827c1a7e339eafec12325c32daecd0b8c45;p=thirdparty%2Fasterisk.git the pure attribute was not implemented before gcc 2.96. Since we have this version check here anwyay, define attribute_pure to be empty if it's an earlier version. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38464 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/compiler.h b/include/asterisk/compiler.h index b8df362e1d..a36138d8ac 100644 --- a/include/asterisk/compiler.h +++ b/include/asterisk/compiler.h @@ -26,11 +26,11 @@ #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96) #define __builtin_expect(exp, c) (exp) #define force_inline inline +#define attribute_pure #else #define force_inline inline __attribute__((always_inline)) -#endif - #define attribute_pure __attribute__((pure)) +#endif #define attribute_const __attribute__((const))