changeset 450:dd654d025ed5 libavutil

Add fallback for DECLARE_ALIGNED and DECLARE_ASM_CONST.
author diego
date Wed, 13 Feb 2008 08:36:04 +0000
parents f150c3ca02d5
children c2e1ba46b27c
files mem.h
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mem.h	Wed Feb 13 08:33:05 2008 +0000
+++ b/mem.h	Wed Feb 13 08:36:04 2008 +0000
@@ -35,6 +35,10 @@
 #elif _MSVC
   #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
+#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
 
 /**