# HG changeset patch # User diego # Date 1232913067 0 # Node ID ddcfe921388f31f11a4dfc32bf63c2eea6a98ee3 # Parent e142a179745c1d1337ac8066b0ab6d27576be3c8 Restore _MSC_VER case in DECLARE_ALIGNED/DECLARE_ASM_CONST macro declaration. This compiler might be supported in the future or we might some day decide to export these macros. diff -r e142a179745c -r ddcfe921388f internal.h --- a/internal.h Sun Jan 25 19:24:47 2009 +0000 +++ b/internal.h Sun Jan 25 19:51:07 2009 +0000 @@ -264,6 +264,9 @@ #elif defined(__GNUC__) #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n))) #define DECLARE_ASM_CONST(n,t,v) static const t v attribute_used __attribute__ ((aligned (n))) +#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 HAVE_INLINE_ASM #error The asm code needs alignment, but we do not know how to do it for this compiler. #else