diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-04-24 18:01:30 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-04-24 18:01:30 +0200 |
commit | ced0d6c14d1ad717d09f6777fcf424586ca6f036 (patch) | |
tree | 00dc3197aa912800adcb3e0d402fd4e18bd90395 /libavutil | |
parent | 9cc4bc973c206ff89c923e6514ae6006d7b7c8fb (diff) | |
download | ffmpeg-ced0d6c14d1ad717d09f6777fcf424586ca6f036.tar.gz |
Use correct msvc type specifiers for ptrdiff_t and size_t.
The Windows runtime aborts if it finds %t or %z.
Fixes ticket #3472.
Reviewed-by: Ronald Bultje
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h index c6c0aa8d38..e5560ca7ab 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -231,6 +231,11 @@ void avpriv_request_sample(void *avc, #if HAVE_LIBC_MSVCRT #define avpriv_open ff_open +#define PTRDIFF_SPECIFIER "Id" +#define SIZE_SPECIFIER "Iu" +#else +#define PTRDIFF_SPECIFIER "td" +#define SIZE_SPECIFIER "zu" #endif /** |