tchar.h

Martin Fuchs martin-fuchs at gmx.net
Fri Oct 8 14:02:36 CDT 2004


Changelog:
- Fix typo in error message
- Separate wint_t definition from wctype_t definition (needed for Cygwin target)


Index: tchar.h
===================================================================
RCS file: /home/wine/wine/include/tchar.h,v
retrieving revision 1.23
diff -u -p -d -r1.23 tchar.h
--- tchar.h     26 Apr 2004 23:32:15 -0000      1.23
+++ tchar.h     8 Oct 2004 18:52:40 -0000
@@ -24,7 +24,7 @@
 #endif

 #if defined(_UNICODE) || defined(_MBCS)
-#error You must use msvcrt when builing in Unicode/MBCS mode
+#error You must use msvcrt when building in Unicode/MBCS mode
 #endif

 #ifdef __cplusplus
@@ -219,8 +219,11 @@ extern "C" {
 #define _TEXT(x) __T(x)

 #ifdef _UNICODE
-#ifndef _WCTYPE_T_DEFINED
+#if !defined(_WINT_T_DEFINED) && !defined(__WINT_TYPE__)
 typedef unsigned short wint_t;
+#endif
+
+#ifndef _WCTYPE_T_DEFINED
 typedef unsigned short wctype_t;
 #define _WCTYPE_T_DEFINED
 #endif





More information about the wine-patches mailing list