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

@ -1,4 +1,5 @@
#pragma once
#include <wx/string.h>
#if defined(_MSC_VER)
#define snprintf _snprintf
@ -111,10 +112,14 @@ namespace fmt{
for (;;)
{
std::vector<char> buffptr(length);
#if !defined(_MSC_VER)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wformat-security"
size_t printlen = snprintf(buffptr.data(), length, fmt.c_str(), std::forward<Args>(parameters)...);
#pragma clang diagnostic pop
#else
size_t printlen = _snprintf_s(buffptr.data(), length, length - 1, fmt.c_str(), std::forward<Args>(parameters)...);
#endif
if (printlen < length)
{
str = string(buffptr.data(), printlen);