Mercurial > libavformat.hg
changeset 4204:66dacc060918 libavformat
fix version protection
author | aurel |
---|---|
date | Tue, 13 Jan 2009 00:20:18 +0000 |
parents | 27d9df19f066 |
children | 41878938d030 |
files | metadata_compat.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/metadata_compat.c Mon Jan 12 00:07:40 2009 +0000 +++ b/metadata_compat.c Tue Jan 13 00:20:18 2009 +0000 @@ -18,12 +18,13 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#if LIBAVFORMAT_VERSION_MAJOR < 53 - #include <strings.h> +#include "avformat.h" #include "metadata.h" #include "libavutil/avstring.h" +#if LIBAVFORMAT_VERSION_MAJOR < 53 + #define SIZE_OFFSET(x) sizeof(((AVFormatContext*)0)->x),offsetof(AVFormatContext,x) static const struct {