diff options
author | Russell Bryant <russell@russellbryant.com> | 2006-07-28 22:50:54 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2006-07-28 22:50:54 +0000 |
commit | 450db95711d187c6ccc052d4cbcd78fbc2ce40bd (patch) | |
tree | 5f749b5e10f9b615d385efd401bd3ef745840c9f /include/asterisk/compiler.h | |
parent | d6246e579fe573bff336e4d8de3787273b3a4721 (diff) |
add macros for the pure and const attributes to compiler.h, in case they ever
need to be handled differently for a specific compiler
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38454 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/compiler.h')
-rw-r--r-- | include/asterisk/compiler.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asterisk/compiler.h b/include/asterisk/compiler.h index 24f6907d1..b8df362e1 100644 --- a/include/asterisk/compiler.h +++ b/include/asterisk/compiler.h @@ -30,4 +30,8 @@ #define force_inline inline __attribute__((always_inline)) #endif +#define attribute_pure __attribute__((pure)) + +#define attribute_const __attribute__((const)) + #endif /* _ASTERISK_COMPILER_H */ |