OSDN Git Service

Add fallback for DECLARE_ALIGNED and DECLARE_ASM_CONST.
authorDiego Biurrun <diego@biurrun.de>
Wed, 13 Feb 2008 08:36:04 +0000 (08:36 +0000)
committerDiego Biurrun <diego@biurrun.de>
Wed, 13 Feb 2008 08:36:04 +0000 (08:36 +0000)
Originally committed as revision 11919 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/mem.h

index 851d140..e0f17d7 100644 (file)
 #elif _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
+  #warning No align and asm directives, this might fail.
+  #define DECLARE_ALIGNED(n,t,v)      t v
+  #define DECLARE_ASM_CONST(n,t,v)    static const t v
 #endif
 
 /**