summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavutil/mem.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/mem.h b/libavutil/mem.h
index 7bf707001b..f8df42cfe7 100644
--- a/libavutil/mem.h
+++ b/libavutil/mem.h
@@ -35,8 +35,9 @@
#elif defined(_MSC_VER)
#define DECLARE_ALIGNED(n,t,v) __declspec(align(n)) t v
#define DECLARE_ASM_CONST(n,t,v) __declspec(align(n)) static const t v
+#elif defined(HAVE_INLINE_ASM)
+ #error The asm code needs alignment, but we do not know how to do it for this compiler.
#else
-// #warning No align and asm directives, this might fail.
#define DECLARE_ALIGNED(n,t,v) t v
#define DECLARE_ASM_CONST(n,t,v) static const t v
#endif