Unify g_output and console initialization

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6802 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2016-11-23 15:42:20 +00:00
parent 37c2cce029
commit 27ed0e502b
7 changed files with 39 additions and 17 deletions

View file

@ -168,6 +168,7 @@ inline void PrintColorFmtMsg_ERR(const TCHAR *fmtstr, ...)
}
bool NSISRT_Initialize();
#ifndef _WIN32
// iconv const inconsistency workaround by Alexandre Oliva
template <typename T>
@ -235,7 +236,6 @@ BOOL IsValidCodePage(UINT CodePage);
#else
#define CharNext CharNextA
#endif
bool NSISRT_Initialize();
#define NSISRT_free(p) ( free((void*)(p)) )
wchar_t* NSISRT_mbtowc(const char *Str);
char* NSISRT_wctomb(const wchar_t *Str);
@ -262,8 +262,6 @@ int my_open(const TCHAR *pathname, int flags);
#else // _WIN32
#define NSISRT_Initialize() (true)
#define my_convert(x) (x)
#define my_convert_free(x)