mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-04 20:25:29 +00:00
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
This commit is contained in:
@@ -26,11 +26,11 @@
|
|||||||
#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96)
|
#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96)
|
||||||
#define __builtin_expect(exp, c) (exp)
|
#define __builtin_expect(exp, c) (exp)
|
||||||
#define force_inline inline
|
#define force_inline inline
|
||||||
|
#define attribute_pure
|
||||||
#else
|
#else
|
||||||
#define force_inline inline __attribute__((always_inline))
|
#define force_inline inline __attribute__((always_inline))
|
||||||
#endif
|
|
||||||
|
|
||||||
#define attribute_pure __attribute__((pure))
|
#define attribute_pure __attribute__((pure))
|
||||||
|
#endif
|
||||||
|
|
||||||
#define attribute_const __attribute__((const))
|
#define attribute_const __attribute__((const))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user