diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-28 23:30:18 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-28 23:30:18 +0000 |
commit | 071cba7f50d095ee69f8d1c052824b2333c761ac (patch) | |
tree | dbcb96b470bea6807615f1be2bfb07fe82c0814e /include | |
parent | 3ffb23720d9c16ec413ea4871f7a4728f073235a (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@38464 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/compiler.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/compiler.h b/include/asterisk/compiler.h index b8df362e1..a36138d8a 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)) |