From 84ff5ddeac63da196a46ef8d5d2d5ee47ee94e3d Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Tue, 19 Oct 2004 03:57:18 +0000 Subject: [PATCH] - Fix typo in error message - Separate wint_t definition from wctype_t definition (needed for Cygwin target). --- include/tchar.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/tchar.h b/include/tchar.h index 36b03ddaeaf..9af9f0ae63a 100644 --- a/include/tchar.h +++ b/include/tchar.h @@ -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