From 9db694509d4b6005d84367007c18a8c224c56de0 Mon Sep 17 00:00:00 2001 From: Juergen Keil Date: Thu, 24 Oct 2002 16:02:43 +0000 Subject: try to handle the __attribute((__packed__)) gnu extension in buffer.h header CVS patchset: 2987 CVS date: 2002/10/24 16:02:43 --- src/xine-utils/attributes.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/xine-utils/attributes.h') 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 -- cgit v1.2.3