diff options
Diffstat (limited to 'src/xine-utils/attributes.h')
-rw-r--r-- | src/xine-utils/attributes.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xine-utils/attributes.h b/src/xine-utils/attributes.h index 0e377831b..5e4afaa73 100644 --- a/src/xine-utils/attributes.h +++ b/src/xine-utils/attributes.h @@ -26,3 +26,11 @@ #else #define ATTR_ALIGN(align) #endif + +/* disable GNU __attribute__ extension, when not compiling with GNU C */ +#if defined(__GNUC__) +#define ATTRIBUTE_PACKED 1 +#else +#undef ATTRIBUTE_PACKED +#define __attribute__(x) /**/ +#endif |