summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-10 13:41:01 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-10 13:41:01 +0200
commitfeb6d97a3c38cf235e7becebe80517f08ef9df91 (patch)
tree72572f0eb51d09c36bd1003487a3f9d313048c23
parentf0bb7ea04c1c860c96dcfdd0a837d9c3eb906100 (diff)
downloadxine-lib-feb6d97a3c38cf235e7becebe80517f08ef9df91.tar.gz
xine-lib-feb6d97a3c38cf235e7becebe80517f08ef9df91.tar.bz2
Add a warning if the __attribute__((packed)) is not supported, as the #pragma pack support is too weak right now.
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 9034b6352..138e587a4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2096,7 +2096,8 @@ 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])]
+ [AC_MSG_WARN([Your compiler doesn't support __attribute__((packed)); xine might not work as expected.])
+ AC_DEFINE([XINE_PACKED], [], [Dummy mark a structure as being packed])]
)
CC_ATTRIBUTE_VISIBILITY([protected], [visibility_export="protected"],