diff options
Diffstat (limited to 'include/asterisk/compiler.h')
-rw-r--r-- | include/asterisk/compiler.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asterisk/compiler.h b/include/asterisk/compiler.h index 91112dbfe..77b5de40e 100644 --- a/include/asterisk/compiler.h +++ b/include/asterisk/compiler.h @@ -71,6 +71,12 @@ #define attribute_warn_unused_result #endif +#ifdef HAVE_ATTRIBUTE_may_alias +#define attribute_may_alias __attribute__((may_alias)) +#else +#define attribute_may_alias +#endif + /* Some older version of GNU gcc (3.3.5 on OpenBSD 4.3 for example) dont like 'NULL' as sentinel */ #define SENTINEL ((char *)NULL) |