fixed: win32 macros

git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@387 e52654a7-88a9-db11-a3e9-0013d4bc506e
master
Tomasz Sowa 11 years ago
parent 8b3c2904aa
commit f29a7a41d4

@ -365,10 +365,10 @@ std::wstring & Space::Add(const wchar_t * name, int value)
{
wchar_t value_str[50];
#ifdef _MSC_VER
swprintf(value_str, sizeof(value_str)/sizeof(wchar_t), L"%d", value);
#else
#if defined _WIN32 || defined _WIN64
swprintf(value_str, L"%d", value);
#else
swprintf(value_str, sizeof(value_str)/sizeof(wchar_t), L"%d", value);
#endif
return Add(name, value_str);
@ -385,10 +385,10 @@ std::wstring & Space::Add(const wchar_t * name, long value)
{
wchar_t value_str[50];
#ifdef _MSC_VER
swprintf(value_str, sizeof(value_str)/sizeof(wchar_t), L"%ld", value);
#else
#if defined _WIN32 || defined _WIN64
swprintf(value_str, L"%ld", value);
#else
swprintf(value_str, sizeof(value_str)/sizeof(wchar_t), L"%ld", value);
#endif
return Add(name, value_str);

Loading…
Cancel
Save