1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libvpx/mingw.patch Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +diff --git a/media/libvpx/vpx/src/svc_encodeframe.c b/media/libvpx/vpx/src/svc_encodeframe.c 1.5 +index 57d21dc..2514ad3 100644 1.6 +--- a/media/libvpx/vpx/src/svc_encodeframe.c 1.7 ++++ b/media/libvpx/vpx/src/svc_encodeframe.c 1.8 +@@ -18,21 +18,23 @@ 1.9 + #include <stdlib.h> 1.10 + #include <string.h> 1.11 + #define VPX_DISABLE_CTRL_TYPECHECKS 1 1.12 + #define VPX_CODEC_DISABLE_COMPAT 1 1.13 + #include "vpx/svc_context.h" 1.14 + #include "vpx/vp8cx.h" 1.15 + #include "vpx/vpx_encoder.h" 1.16 + 1.17 +-#if defined(__MINGW32__) && !defined(MINGW_HAS_SECURE_API) 1.18 ++#ifdef __MINGW32__ 1.19 + #define strtok_r strtok_s 1.20 ++#ifndef MINGW_HAS_SECURE_API 1.21 + // proto from /usr/x86_64-w64-mingw32/include/sec_api/string_s.h 1.22 + _CRTIMP char *__cdecl strtok_s(char *str, const char *delim, char **context); 1.23 +-#endif 1.24 ++#endif /* MINGW_HAS_SECURE_API */ 1.25 ++#endif /* __MINGW32__ */ 1.26 + 1.27 + #ifdef _MSC_VER 1.28 + #define strdup _strdup 1.29 + #define strtok_r strtok_s 1.30 + #endif 1.31 + 1.32 + #define SVC_REFERENCE_FRAMES 8 1.33 + #define SUPERFRAME_SLOTS (8)