fixed: win32 macros

git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@387 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
Tomasz Sowa 2012-02-15 07:57:44 +00:00
parent 8b3c2904aa
commit f29a7a41d4
1 changed files with 6 additions and 6 deletions

View File

@ -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);