]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
10l: Correctly use preprocessor conditionals.
authordiego <diego@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 20 Feb 2008 18:48:49 +0000 (18:48 +0000)
committerdiego <diego@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 20 Feb 2008 18:48:49 +0000 (18:48 +0000)
patch by Eddie Pang, eddpang gmail com

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12159 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavutil/mem.h

index e0f17d78bb750cdd31cb8b355c51f68f64c926a2..09159f7ee8e91101d36d338b347daef4c34fddce 100644 (file)
 #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