Mercurial > libavformat.hg
diff metadata_compat.c @ 4204:66dacc060918 libavformat
fix version protection
| author | aurel |
|---|---|
| date | Tue, 13 Jan 2009 00:20:18 +0000 |
| parents | 17a8a3696ee1 |
| children | 2fc899894f5e |
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 {
