From 5cbd67ea43d979a0c1bc7c367b63d62d35e104e3 Mon Sep 17 00:00:00 2001 From: Eddie Pang Date: Wed, 20 Feb 2008 18:48:49 +0000 Subject: 10l: Correctly use preprocessor conditionals. patch by Eddie Pang, eddpang gmail com Originally committed as revision 12159 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/mem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavutil') diff --git a/libavutil/mem.h b/libavutil/mem.h index e0f17d7..09159f7 100644 --- a/libavutil/mem.h +++ b/libavutil/mem.h @@ -29,10 +29,10 @@ #ifdef __ICC #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n))) #define DECLARE_ASM_CONST(n,t,v) const t __attribute__ ((aligned (n))) v -#elif __GNUC__ +#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 _MSVC +#elif defined(_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 -- cgit v1.1