OSDN Git Service

Disentangle nested preprocessor directives.
authorDiego Biurrun <diego@biurrun.de>
Wed, 13 Feb 2008 08:08:03 +0000 (08:08 +0000)
committerDiego Biurrun <diego@biurrun.de>
Wed, 13 Feb 2008 08:08:03 +0000 (08:08 +0000)
Originally committed as revision 11917 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/mem.h

index 3c7284d..84b7728 100644 (file)
 #ifndef FFMPEG_MEM_H
 #define FFMPEG_MEM_H
 
-#ifdef __GNUC__
-  #define DECLARE_ALIGNED(n,t,v)       t v __attribute__ ((aligned (n)))
 #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
-#else
+#elif __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)))
-#endif
 #else
   #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