From feb6d97a3c38cf235e7becebe80517f08ef9df91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Tue, 10 Apr 2007 13:41:01 +0200 Subject: Add a warning if the __attribute__((packed)) is not supported, as the #pragma pack support is too weak right now. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"], -- cgit v1.2.3