# HG changeset patch # User diego # Date 1205008215 0 # Node ID b0b971f533e47139c8c25d44fa58c88594d94279 # Parent 18c82237bf84994e3d5a354fcbfedd9cdfb6dea7 #error in case we do not know how to provide alignment. diff -r 18c82237bf84 -r b0b971f533e4 mem.h --- a/mem.h Sat Mar 08 18:33:07 2008 +0000 +++ b/mem.h Sat Mar 08 20:30:15 2008 +0000 @@ -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