Commit 4a56d614 authored by Kjell Schubert's avatar Kjell Schubert

support for msvs 2015

parent 58345b18
......@@ -59,6 +59,8 @@ int safe_vsnprintf(char *str, size_t size, const char *format, va_list ap) {
# pragma warning(pop)
#endif
#if _MSC_VER < 1900 // msvs 2015 finally includes snprintf
int snprintf(char *str, size_t size, const char *format, ...) {
int r;
va_list ap;
......@@ -68,4 +70,6 @@ int snprintf(char *str, size_t size, const char *format, ...) {
return r;
}
#endif
#endif /* #if !defined(__MINGW32__) && !defined(__MINGW64__) */
Markdown is supported
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