Mercurial > libavutil.hg
changeset 454:909853728b47 libavutil
10l: Correctly use preprocessor conditionals.
patch by Eddie Pang, eddpang gmail com
author | diego |
---|---|
date | Wed, 20 Feb 2008 18:48:49 +0000 |
parents | 5aec7a3442b1 |
children | ed36fc829044 |
files | mem.h |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mem.h Tue Feb 19 22:50:28 2008 +0000 +++ b/mem.h Wed Feb 20 18:48:49 2008 +0000 @@ -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