globalplatform
unicode.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2005-2026, Karsten Ohme
3  * This file is part of GlobalPlatform.
4  *
5  * GlobalPlatform is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * GlobalPlatform is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with GlobalPlatform. If not, see <https://www.gnu.org/licenses/>.
17  *
18  * In addition, as a special exception, the copyright holders give
19  * permission to link the code of portions of this program with the
20  * OpenSSL library under certain conditions as described in each
21  * individual source file, and distribute linked combinations
22  * including the two.
23  * You must obey the GNU Lesser General Public License in all respects
24  * for all of the code used other than OpenSSL. If you modify
25  * file(s) with this exception, you may extend this exception to your
26  * version of the file(s), but you are not obligated to do so. If you
27  * do not wish to do so, delete this exception statement from your
28  * version.
29  */
30 
35 #ifndef OPGP_UNICODE_H
36 #define OPGP_UNICODE_H
37 
38 #ifdef WIN32
39 #include <tchar.h>
40 #endif
41 
42 #ifndef WIN32
43 #define _tmain main
44 #define _TCHAR char
45 #define TCHAR char
46 #define _T(arg) arg
47 #define _tcsncpy strncpy
48 #define _tcscpy strcpy
49 #define _tcscmp strcmp
50 #define _tcslen strlen
51 #define _tprintf printf
52 #define _tfopen fopen
53 #define _stprintf sprintf
54 #define _tgetenv getenv
55 #define _ftprintf fprintf
56 #define _sntprintf snprintf
57 #define _fputts fputs
58 #define _vftprintf vfprintf
59 #define _tcserror_s strerror_r
60 #endif
61 
62 #endif