summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-10 13:13:59 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-10 13:13:59 +0200
commitf0bb7ea04c1c860c96dcfdd0a837d9c3eb906100 (patch)
tree59387c5505866f34ce304c3895210d0727cf9f72 /configure.ac
parent1e61f032793a3460ad97b0e38b7a1ec58324999d (diff)
downloadxine-lib-f0bb7ea04c1c860c96dcfdd0a837d9c3eb906100.tar.gz
xine-lib-f0bb7ea04c1c860c96dcfdd0a837d9c3eb906100.tar.bz2
Add a new check for __attribute__((packed)), and if present, define XINE_PACKED.
This is the first step to sanitise the handling of PACKED attribute.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 75f8645df..9034b6352 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2094,6 +2094,11 @@ dnl ---------------------------------------------
CC_ATTRIBUTE_ALIGNED
+CC_ATTRIBUTE_PACKED(
+ [AC_DEFINE([XINE_PACKED], [__attribute__((packed))], [Mark a structure as being packed])],
+ [AC_DEFINE([XINE_PACKED], [], [Dummy mark a structure as being packed])]
+)
+
CC_ATTRIBUTE_VISIBILITY([protected], [visibility_export="protected"],
[CC_ATTRIBUTE_VISIBILITY([default], [visibility_export="default"])]
)