summaryrefslogtreecommitdiff
path: root/src/xine-utils/attributes.h
diff options
context:
space:
mode:
authorJuergen Keil <jkeil@users.sourceforge.net>2002-10-24 16:02:43 +0000
committerJuergen Keil <jkeil@users.sourceforge.net>2002-10-24 16:02:43 +0000
commit9db694509d4b6005d84367007c18a8c224c56de0 (patch)
treefe5645b09bd3ecba8b1d67bf2c1bf96d756d034c /src/xine-utils/attributes.h
parent0270bd6a95d9fe507c54212993b4fcf1a343091b (diff)
downloadxine-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.h8
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