diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/platform.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h index b58b14936..ab4402e79 100644 --- a/include/platform.h +++ b/include/platform.h @@ -100,6 +100,13 @@ # define EXTERNALLY_VISIBLE #endif +/* At 4.4 gcc become much more anal about this, need to use "aliased" types */ +#if __GNUC_PREREQ(4,4) +# define FIX_ALIASING __attribute__((__may_alias__)) +#else +# define FIX_ALIASING +#endif + /* We use __extension__ in some places to suppress -pedantic warnings about GCC extensions. This feature didn't work properly before gcc 2.8. */ |