stdafx_gui.h created, wx removed from stdafx.h

This commit is contained in:
Nekotekina 2014-08-29 02:49:26 +04:00
parent 693e7a38fa
commit 028ce2dd9f
45 changed files with 421 additions and 183 deletions

View file

@ -14,7 +14,11 @@ std::string fmt::FormatV(const char *fmt, va_list args)
for (;;)
{
std::vector<char> buffptr(length);
#if !defined(_MSC_VER)
size_t printlen = vsnprintf(buffptr.data(), length, fmt, args);
#else
size_t printlen = vsnprintf_s(buffptr.data(), length, length - 1, fmt, args);
#endif
if (printlen < length)
{
str = std::string(buffptr.data(), printlen);