[FFmpeg-cvslog] r12159 - trunk/libavutil/mem.h

diego subversion
Wed Feb 20 19:48:49 CET 2008


Author: diego
Date: Wed Feb 20 19:48:49 2008
New Revision: 12159

Log:
10l: Correctly use preprocessor conditionals.
patch by Eddie Pang, eddpang gmail com


Modified:
   trunk/libavutil/mem.h

Modified: trunk/libavutil/mem.h
==============================================================================
--- trunk/libavutil/mem.h	(original)
+++ trunk/libavutil/mem.h	Wed Feb 20 19:48:49 2008
@@ -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




More information about the ffmpeg-cvslog mailing list