2010-03-24 17:22:56 +00:00
|
|
|
// 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
|
2012-02-28 22:40:43 +00:00
|
|
|
# define FOPEN _wfopen
|
2010-03-24 17:22:56 +00:00
|
|
|
|
|
|
|
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
|
2014-01-21 14:13:00 +00:00
|
|
|
# ifdef _WIN32
|
2010-03-24 17:22:56 +00:00
|
|
|
# define _tunlink _unlink
|
2014-01-21 14:13:00 +00:00
|
|
|
# else
|
|
|
|
# define _tunlink unlink
|
|
|
|
# endif
|
2012-02-28 22:40:43 +00:00
|
|
|
# define FOPEN fopen
|
2010-03-24 17:22:56 +00:00
|
|
|
|
|
|
|
typedef std::string tstring;
|
|
|
|
typedef std::istringstream tistringstream;
|
|
|
|
typedef char TCHAR;
|
|
|
|
#endif
|