fix mingw gcc error (#1352)

This commit is contained in:
云风 2018-03-14 12:31:15 +08:00 committed by Branimir Karadžić
parent cd4b132259
commit ea202ef6fe
1 changed files with 4 additions and 1 deletions

View File

@ -39,7 +39,6 @@
#if (defined(_MSC_VER) && _MSC_VER < 1900 /*vs2015*/) || defined MINGW_HAS_SECURE_API
#include <basetsd.h>
#define snprintf sprintf_s
#define safe_vsprintf(buf,max,format,args) vsnprintf_s((buf), (max), (max), (format), (args))
#elif defined (solaris)
#define safe_vsprintf(buf,max,format,args) vsnprintf((buf), (max), (format), (args))
@ -100,6 +99,10 @@ inline long long int atoll (const char* str)
#include <cstdio>
#include <cassert>
#if (defined(_MSC_VER) && _MSC_VER < 1900 /*vs2015*/) || defined MINGW_HAS_SECURE_API
#define snprintf sprintf_s
#endif
#include "PoolAlloc.h"
//