globalplatform
unicode.h
Go to the documentation of this file.
1 /* Copyright (c) 2007, Karsten Ohme
2  * This file is part of GlobalPlatform.
3  *
4  * GlobalPlatform is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * GlobalPlatform is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with GlobalPlatform. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
22 #ifndef OPGP_UNICODE_H
23 #define OPGP_UNICODE_H
24 
25 #ifndef WIN32
26 #define _tmain main
27 #define _TCHAR char
28 #define TCHAR char
29 #if !defined(__wintypes_h__)
30 #define LPTSTR char *
31 #define LPCTSTR const char *
32 #endif
33 #define _T(arg) arg
34 #define _tcsncpy strncpy
35 #define _tcscpy strcpy
36 #define _tcslen strlen
37 #define _tprintf printf
38 #define _tfopen fopen
39 #define _stprintf sprintf
40 #define _tgetenv getenv
41 #define _ftprintf fprintf
42 #define _sntprintf snprintf
43 #define _fputts fputs
44 #define _vftprintf vfprintf
45 #define _tcserror_s strerror_r
46 #endif
47 
48 #endif