Fix crt definition of TCHAR, ...
authorKai Tietz <ktietz70@googlemail.com>
Sun, 28 Feb 2010 08:29:07 +0000 (08:29 +0000)
committerKai Tietz <ktietz70@googlemail.com>
Sun, 28 Feb 2010 08:29:07 +0000 (08:29 +0000)
svn path=/branches/header-work/; revision=45718

include/crt/tchar.h

index b047e3a..0b5011e 100644 (file)
@@ -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