aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEddie Pang <eddpang@gmail.com>2008-02-20 18:48:49 +0000
committerDiego Biurrun <diego@biurrun.de>2008-02-20 18:48:49 +0000
commit5cbd67ea43d979a0c1bc7c367b63d62d35e104e3 (patch)
tree5ee4c79ce35a45f5d48f816622691c764d3b35a2
parentd597e1b76cbde5d8ae04dfa4207f5813b3dbf8af (diff)
downloadffmpeg-5cbd67ea43d979a0c1bc7c367b63d62d35e104e3.tar.gz
10l: Correctly use preprocessor conditionals.
patch by Eddie Pang, eddpang gmail com Originally committed as revision 12159 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavutil/mem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/mem.h b/libavutil/mem.h
index e0f17d78bb..09159f7ee8 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