ifdef guard TCHAR declaration like PSDK does.

This commit is contained in:
Juan Lang 2004-04-05 20:18:22 +00:00 committed by Alexandre Julliard
parent 1ad8180e44
commit a89674f302
1 changed files with 6 additions and 0 deletions

View File

@ -347,12 +347,18 @@ typedef const WCHAR *PCWSTR, *LPCWSTR;
*/
#ifndef __WINESRC__
# ifdef UNICODE
# ifndef _TCHAR_DEFINED
typedef WCHAR TCHAR, *PTCHAR;
# define _TCHAR_DEFINED
#endif
typedef LPWSTR PTSTR, LPTSTR;
typedef LPCWSTR PCTSTR, LPCTSTR;
# define __TEXT(string) L##string
# else /* UNICODE */
# ifndef _TCHAR_DEFINED
typedef CHAR TCHAR, *PTCHAR;
# define _TCHAR_DEFINED
# endif
typedef LPSTR PTSTR, LPTSTR;
typedef LPCSTR PCTSTR, LPCTSTR;
# define __TEXT(string) string