From 71fad7d0fb4ec75fe718b381f651d339a204cc9e Mon Sep 17 00:00:00 2001 From: davygrvy Date: Mon, 28 Jan 2002 12:23:06 +0000 Subject: * generic/tclPlatDecls.h: Added preprocessor logic to force a typedef of TCHAR when __STDC__ is defined when using the uncommon -Za compiler switch with the microsoft compiler. --- generic/tclPlatDecls.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/generic/tclPlatDecls.h b/generic/tclPlatDecls.h index 51ed55a..3425a9a 100644 --- a/generic/tclPlatDecls.h +++ b/generic/tclPlatDecls.h @@ -6,16 +6,14 @@ * Copyright (c) 1998-1999 by Scriptics Corporation. * All rights reserved. * - * RCS: @(#) $Id: tclPlatDecls.h,v 1.14 2002/01/25 21:36:09 dgp Exp $ + * RCS: @(#) $Id: tclPlatDecls.h,v 1.15 2002/01/28 12:23:06 davygrvy Exp $ */ #ifndef _TCLPLATDECLS #define _TCLPLATDECLS /* - * Pull in the definition of TCHAR. Hopefully the compile flags - * of the core are matching against your project build for these - * public functions. BE AWARE. + * Pull in the typedef of TCHAR for windows. */ #if defined(__WIN32__) && !defined(_TCHAR_DEFINED) # include @@ -24,6 +22,10 @@ typedef _TCHAR TCHAR; # define _TCHAR_DEFINED # endif +# if defined(_MSC_VER) && defined(__STDC__) + /* MSVC++ misses this. */ + typedef _TCHAR TCHAR; +# endif #endif /* !BEGIN!: Do not edit below this line. */ -- cgit v0.12