1230fdc108
Change-Id: Ieb49357166b392956df6554a06fcae83c8fd519d
36 lines
825 B
C
Executable file
36 lines
825 B
C
Executable file
#ifdef XML_UNICODE
|
|
#ifndef XML_UNICODE_WCHAR_T
|
|
#error xmlwf requires a 16-bit Unicode-compatible wchar_t
|
|
#endif
|
|
#define T(x) L ## x
|
|
#define ftprintf fwprintf
|
|
#define tfopen _wfopen
|
|
#define fputts fputws
|
|
#define puttc putwc
|
|
#define tcscmp wcscmp
|
|
#define tcscpy wcscpy
|
|
#define tcscat wcscat
|
|
#define tcschr wcschr
|
|
#define tcsrchr wcsrchr
|
|
#define tcslen wcslen
|
|
#define tperror _wperror
|
|
#define topen _wopen
|
|
#define tmain wmain
|
|
#define tremove _wremove
|
|
#else /* not XML_UNICODE */
|
|
#define T(x) x
|
|
#define ftprintf fprintf
|
|
#define tfopen fopen
|
|
#define fputts fputs
|
|
#define puttc putc
|
|
#define tcscmp strcmp
|
|
#define tcscpy strcpy
|
|
#define tcscat strcat
|
|
#define tcschr strchr
|
|
#define tcsrchr strrchr
|
|
#define tcslen strlen
|
|
#define tperror perror
|
|
#define topen open
|
|
#define tmain main
|
|
#define tremove remove
|
|
#endif /* not XML_UNICODE */
|