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