Browse Source

#error in case we do not know how to provide alignment.

Originally committed as revision 12382 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Diego Biurrun 17 years ago
parent
commit
c123486e44
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavutil/mem.h

+ 2
- 1
libavutil/mem.h View File

@@ -35,8 +35,9 @@
#elif defined(_MSC_VER)
#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
#elif defined(HAVE_INLINE_ASM)
#error The asm code needs alignment, but we do not know how to do it for this compiler.
#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


Loading…
Cancel
Save