winpr: fix tchar redefinition
This commit is contained in:
parent
4c319ebdd9
commit
f905fd09eb
@ -30,21 +30,23 @@
|
||||
#else
|
||||
|
||||
#ifdef UNICODE
|
||||
typedef WCHAR TCHAR;
|
||||
typedef WCHAR TCHAR;
|
||||
#else
|
||||
typedef CHAR TCHAR;
|
||||
#endif
|
||||
|
||||
#ifdef UNICODE
|
||||
#define _tprintf wprintf
|
||||
#define _tcsdup _wcsdup
|
||||
#define _tcscmp wcscmp
|
||||
#define _tcscpy wcscpy
|
||||
#else
|
||||
typedef CHAR TCHAR;
|
||||
#define _tprintf printf
|
||||
#define _tcsdup _strdup
|
||||
#define _tcscmp strcmp
|
||||
#define _tcscpy strcpy
|
||||
#endif
|
||||
|
||||
typedef TCHAR *LPTSTR, *LPTCH;
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* WINPR_TCHAR_H */
|
||||
|
@ -148,9 +148,11 @@ typedef struct _LUID
|
||||
#endif
|
||||
|
||||
#ifdef UNICODE
|
||||
typedef LPWSTR LPTCH;
|
||||
typedef LPWSTR LPTSTR;
|
||||
typedef LPCWSTR LPCTSTR;
|
||||
#else
|
||||
typedef LPSTR LPTCH;
|
||||
typedef LPSTR LPTSTR;
|
||||
typedef LPCSTR LPCTSTR;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user