mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
fix mingw gcc error (#1352)
This commit is contained in:
5
3rdparty/glslang/glslang/Include/Common.h
vendored
5
3rdparty/glslang/glslang/Include/Common.h
vendored
@@ -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"
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user