diff options
author | davygrvy <davygrvy@pobox.com> | 2002-01-28 12:23:06 (GMT) |
---|---|---|
committer | davygrvy <davygrvy@pobox.com> | 2002-01-28 12:23:06 (GMT) |
commit | 71fad7d0fb4ec75fe718b381f651d339a204cc9e (patch) | |
tree | f2aea7aedaa45016954af678da1461857172ba79 /generic/tclPlatDecls.h | |
parent | 3012a6bae3fb1534e0dbf83a9b31a8866ad4be21 (diff) | |
download | tcl-71fad7d0fb4ec75fe718b381f651d339a204cc9e.zip tcl-71fad7d0fb4ec75fe718b381f651d339a204cc9e.tar.gz tcl-71fad7d0fb4ec75fe718b381f651d339a204cc9e.tar.bz2 |
* 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.
Diffstat (limited to 'generic/tclPlatDecls.h')
-rw-r--r-- | generic/tclPlatDecls.h | 10 |
1 files 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 <tchar.h> @@ -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. */ |