
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6427 212acab6-be3b-0410-9dea-997c60f758d6
34 lines
823 B
C++
34 lines
823 B
C++
// 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
|
|
# define FOPEN _wfopen
|
|
|
|
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
|
|
# ifdef _WIN32
|
|
# define _tunlink _unlink
|
|
# else
|
|
# define _tunlink unlink
|
|
# endif
|
|
# define FOPEN fopen
|
|
|
|
typedef std::string tstring;
|
|
typedef std::istringstream tistringstream;
|
|
typedef char TCHAR;
|
|
#endif
|