| 1 |
// Added for Unicode support by Jim Park -- 08/29/2007 |
| 2 |
#pragma once |
| 3 |
#include <string> |
| 4 |
#include <sstream> |
| 5 |
|
| 6 |
#ifdef _UNICODE |
| 7 |
# define tout wcout |
| 8 |
# define terr wcerr |
| 9 |
# define __T(x) L ## x |
| 10 |
# define _T(x) __T(x) |
| 11 |
# define _tmain wmain |
| 12 |
# define _tunlink _wunlink |
| 13 |
# define FOPEN _wfopen |
| 14 |
|
| 15 |
typedef std::wstring tstring; |
| 16 |
typedef std::wistringstream tistringstream; |
| 17 |
|
| 18 |
typedef wchar_t TCHAR; |
| 19 |
#else |
| 20 |
# define tout cout |
| 21 |
# define terr cerr |
| 22 |
# define _T(x) x |
| 23 |
# define _tmain main |
| 24 |
# ifdef _WIN32 |
| 25 |
# define _tunlink _unlink |
| 26 |
# else |
| 27 |
# define _tunlink unlink |
| 28 |
# endif |
| 29 |
# define FOPEN fopen |
| 30 |
|
| 31 |
typedef std::string tstring; |
| 32 |
typedef std::istringstream tistringstream; |
| 33 |
typedef char TCHAR; |
| 34 |
#endif |