# HG changeset patch # User cehoyos # Date 1202590031 0 # Node ID 945e9a276df965c4228e73b61e732eb07a7af82d # Parent 81f4d434dc96144ce8f4352b7b7b518027c21b7b Allow compilation with icc 10.1. diff -r 81f4d434dc96 -r 945e9a276df9 mem.h --- a/mem.h Sun Feb 03 21:56:13 2008 +0000 +++ b/mem.h Sat Feb 09 20:47:11 2008 +0000 @@ -28,7 +28,11 @@ #ifdef __GNUC__ #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n))) +#ifdef __ICC + #define DECLARE_ASM_CONST(n,t,v) const t __attribute__ ((aligned (n))) v +#else #define DECLARE_ASM_CONST(n,t,v) static const t v attribute_used __attribute__ ((aligned (n))) +#endif #else #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