diff options
author | Juergen Keil <jkeil@users.sourceforge.net> | 2002-10-24 16:02:43 +0000 |
---|---|---|
committer | Juergen Keil <jkeil@users.sourceforge.net> | 2002-10-24 16:02:43 +0000 |
commit | 9db694509d4b6005d84367007c18a8c224c56de0 (patch) | |
tree | fe5645b09bd3ecba8b1d67bf2c1bf96d756d034c /src/xine-utils/attributes.h | |
parent | 0270bd6a95d9fe507c54212993b4fcf1a343091b (diff) | |
download | xine-lib-9db694509d4b6005d84367007c18a8c224c56de0.tar.gz xine-lib-9db694509d4b6005d84367007c18a8c224c56de0.tar.bz2 |
try to handle the __attribute((__packed__)) gnu extension in buffer.h header
CVS patchset: 2987
CVS date: 2002/10/24 16:02:43
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 |