Skip to content

Commit e839602

Browse files
authored
Merge pull request #145 from trioan/vs2005
vs2005 fix
2 parents 88c0fdd + fbd4c6f commit e839602

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/compat/msvc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ extern "C" {
3131

3232
/* Pre-MSVC 2015 compilers don't implement snprintf in a cross-platform manner. */
3333
#if _MSC_VER < 1900
34+
#include <stdio.h>
3435
#include <stdlib.h>
3536
#ifndef snprintf
3637
#define snprintf c99_snprintf_retro__
@@ -41,6 +42,7 @@ extern "C" {
4142

4243
/* Pre-MSVC 2008 compilers don't implement vsnprintf in a cross-platform manner? Not sure about this one. */
4344
#if _MSC_VER < 1500
45+
#include <stdio.h>
4446
#include <stdarg.h>
4547
#include <stdlib.h>
4648
#ifndef vsnprintf

0 commit comments

Comments
 (0)