From a89674f302bdef0abee27d9e8bff1efe7ef5e0f5 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Mon, 5 Apr 2004 20:18:22 +0000 Subject: [PATCH] ifdef guard TCHAR declaration like PSDK does. --- include/winnt.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/winnt.h b/include/winnt.h index 41abe85cb58..02b76ac5496 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -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