Jim Park's Unicode NSIS merging - Step 1 : switch to TCHARs where relevant.
Compiler output is identical before & after this step git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/branches/wizou@6036 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
4e48722b63
commit
752d7d239a
209 changed files with 9698 additions and 7658 deletions
28
Contrib/VPatch/Source/GenPat/tchar.h
Normal file
28
Contrib/VPatch/Source/GenPat/tchar.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
// Added for Unicode support by Jim Park -- 08/29/2007
|
||||
#pragma once
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
|
||||
#ifdef _UNICODE
|
||||
# define tout wcout
|
||||
# define terr wcerr
|
||||
# define __T(x) L ## x
|
||||
# define _T(x) __T(x)
|
||||
# define _tmain wmain
|
||||
# define _tunlink _wunlink
|
||||
|
||||
typedef std::wstring tstring;
|
||||
typedef std::wistringstream tistringstream;
|
||||
|
||||
typedef wchar_t TCHAR;
|
||||
#else
|
||||
# define tout cout
|
||||
# define terr cerr
|
||||
# define _T(x) x
|
||||
# define _tmain main
|
||||
# define _tunlink _unlink
|
||||
|
||||
typedef std::string tstring;
|
||||
typedef std::istringstream tistringstream;
|
||||
typedef char TCHAR;
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue