From 0c0d2d3f2f554cff29c67ce5df28eb99c6b8fbf0 Mon Sep 17 00:00:00 2001 From: anders_k Date: Sun, 22 Jun 2014 12:07:35 +0000 Subject: [PATCH] Don't use _itot, only VC supports _itow? git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6501 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/script.cpp | 2 +- Source/tchar.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/script.cpp b/Source/script.cpp index a8a2dfbe..643d5876 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -3154,7 +3154,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line) extern NStreamEncoding g_outputenc; TCHAR buf[33]; compile=_T("\""), compile+=get_executable_path(g_argv0), compile+= _T("\""); - compile+= _T(" ") OPT_STR _T("v"), compile+=_itot(get_verbosity(),buf,10); + compile+= _T(" ") OPT_STR _T("v"), wsprintf(buf,_T("%d"),get_verbosity()), compile+=buf; compile+= _T(" ") OPT_STR _T("OCS "), g_outputenc.GetCPDisplayName(buf), compile+=buf; if (*exec) compile+= _T(" "), compile+=exec; exec=compile.c_str(); diff --git a/Source/tchar.h b/Source/tchar.h index 64fdf2d0..32667cf0 100644 --- a/Source/tchar.h +++ b/Source/tchar.h @@ -108,7 +108,7 @@ typedef wchar_t TCHAR, _TUCHAR; #define _ttol _wtol // conversion from numbers to strings -#define _itot _itow +//Only VC has this? #define _itot _itow #define _ltot _ltow #define _i64tot _i64tow #define _ui64tot _ui64tow