winpr: fix tchar redefinition

This commit is contained in:
Marc-André Moreau 2012-10-03 08:20:40 -04:00
parent 4c319ebdd9
commit f905fd09eb
2 changed files with 8 additions and 4 deletions

View File

@ -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 */

View File

@ -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