summaryrefslogtreecommitdiff
path: root/libavutil/mem.h
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2008-02-13 08:36:04 +0000
committerDiego Biurrun <diego@biurrun.de>2008-02-13 08:36:04 +0000
commit7cb1fc766ba9072999df5aa6cd060163f059aa60 (patch)
treef318e5d68c793ed089293d2b7f37ca74f1509c36 /libavutil/mem.h
parentb89bb8581d1ef23fe3096b27bdde56f7985b3162 (diff)
Add fallback for DECLARE_ALIGNED and DECLARE_ASM_CONST.
Originally committed as revision 11919 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/mem.h')
-rw-r--r--libavutil/mem.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/mem.h b/libavutil/mem.h
index 851d1408a0..e0f17d78bb 100644
--- a/libavutil/mem.h
+++ b/libavutil/mem.h
@@ -35,6 +35,10 @@
#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
/**