diff --git a/include/lzo/lzodefs.h b/include/lzo/lzodefs.h index f4ae948..b44021d 100644 --- a/include/lzo/lzodefs.h +++ b/include/lzo/lzodefs.h @@ -1686,6 +1686,10 @@ extern "C" { # define __lzo_byte_struct_ma(s,n) struct s { unsigned char a[n]; } __lzo_may_alias __attribute__((__packed__)); #endif #endif +#if (LZO_CC_GNUC >= 0x060000ul) && defined(__lzo_byte_struct_ma) +# undef __lzo_byte_struct +# define __lzo_byte_struct(s,n) __lzo_byte_struct_ma(s,n) +#endif #if defined(__lzo_byte_struct) && !defined(__lzo_byte_struct_ma) # define __lzo_byte_struct_ma(s,n) __lzo_byte_struct(s,n) #endif