From 520bd868e4a66f20db7e56f076119e9dc17797a4 Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Sun, 28 Feb 2010 08:29:07 +0000 Subject: [PATCH] Fix crt definition of TCHAR, ... svn path=/branches/header-work/; revision=45718 --- include/crt/tchar.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/include/crt/tchar.h b/include/crt/tchar.h index b047e3aa06e..0b5011eadd0 100644 --- a/include/crt/tchar.h +++ b/include/crt/tchar.h @@ -108,10 +108,11 @@ extern "C" { typedef wint_t _TINT; #endif +#ifndef NO_OLDNAMES #ifndef _TCHAR_DEFINED #define _TCHAR_DEFINED -#ifndef NO_OLDNAMES - typedef wchar_t TCHAR; + typedef wchar_t TCHAR,*PTCHAR; + typedef wchar_t TBYTE,*PTBYTE; #endif #endif @@ -773,11 +774,12 @@ extern "C" { #define __TCHAR_DEFINED #endif +#ifndef NO_OLDNAMES #ifndef _TCHAR_DEFINED -#ifndef NO_OLDNAMES - typedef char TCHAR; -#endif #define _TCHAR_DEFINED + typedef char TCHAR,*PTCHAR; + typedef unsigned char TBYTE,*PTBYTE; +#endif #endif #ifdef _MB_MAP_DIRECT