Commit fdb2337b authored by James Zern's avatar James Zern Committed by Gerrit Code Review
Browse files

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

parents 33bb4435 aed2ca4b
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment