summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xine-utils/xine_mmx.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xine-utils/xine_mmx.h b/src/xine-utils/xine_mmx.h
index 989337042..58e0d2bd6 100644
--- a/src/xine-utils/xine_mmx.h
+++ b/src/xine-utils/xine_mmx.h
@@ -22,6 +22,14 @@
#if defined(ARCH_X86) || defined(ARCH_X86_64)
+#include <xine/attributes.h>
+
+#if !defined(ATTRIBUTE_ALIGNED_MAX)
+# warning ATTRIBUTE_ALIGNED_MAX undefined. Alignment of data structures does not work !
+#elif ATTRIBUTE_ALIGNED_MAX < 16
+# warning Compiler does not support proper alignment for SSE2 !
+#endif
+
typedef union {
int64_t q; /* Quadword (64-bit) value */
uint64_t uq; /* Unsigned Quadword */