shithub: libvpx

Download patch

ref: fdb2337b01a2fe25a15b5015804e91769065d784
parent: 33bb44355006b550c00085c7cf85fc7321321b75
parent: aed2ca4b39dab703bc858ac00c80b15bff2dde4c
author: James Zern <jzern@google.com>
date: Wed Feb 19 16:00:09 EST 2014

Merge "Fixed compilation on mingw with secure APIs enabled by default."

--- a/vpx/src/svc_encodeframe.c
+++ b/vpx/src/svc_encodeframe.c
@@ -23,11 +23,13 @@
 #include "vpx/vp8cx.h"
 #include "vpx/vpx_encoder.h"
 
-#if defined(__MINGW32__) && !defined(MINGW_HAS_SECURE_API)
+#ifdef __MINGW32__
 #define strtok_r strtok_s
+#ifndef MINGW_HAS_SECURE_API
 // proto from /usr/x86_64-w64-mingw32/include/sec_api/string_s.h
 _CRTIMP char *__cdecl strtok_s(char *str, const char *delim, char **context);
-#endif
+#endif  /* MINGW_HAS_SECURE_API */
+#endif  /* __MINGW32__ */
 
 #ifdef _MSC_VER
 #define strdup _strdup
--