summaryrefslogtreecommitdiff
path: root/libavutil/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavutil/common.h')
-rw-r--r--libavutil/common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavutil/common.h b/libavutil/common.h
index 60ea46a83d..e47688be99 100644
--- a/libavutil/common.h
+++ b/libavutil/common.h
@@ -364,6 +364,13 @@ tend= read_time();\
#endif
/* memory */
+
+#ifdef __GNUC__
+ #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n)))
+#else
+ #define DECLARE_ALIGNED(n,t,v) __declspec(align(n)) t v
+#endif
+
void *av_malloc(unsigned int size);
void *av_realloc(void *ptr, unsigned int size);
void av_free(void *ptr);