diff options
author | davidg <davidg> | 2000-08-20 03:51:23 (GMT) |
---|---|---|
committer | davidg <davidg> | 2000-08-20 03:51:23 (GMT) |
commit | 42e89511879453c75aa0af13642a24b172b52eef (patch) | |
tree | 57ced9009f9e18063880bd9e23bf72f4f365c094 /generic | |
parent | dda87f721cfe468d0a01a3e6eab28ebaf3bdc771 (diff) | |
download | tcl-42e89511879453c75aa0af13642a24b172b52eef.zip tcl-42e89511879453c75aa0af13642a24b172b52eef.tar.gz tcl-42e89511879453c75aa0af13642a24b172b52eef.tar.bz2 |
2000-08-19 David Gravereaux <davygrvy@ajubasolutions.com>
* generic/tclPlatDecls.h: without a previous '#include <windows.h>',
tclPlatDecls.h can't be parsed due to a missing definition of TCHAR.
Added a check to include it when not defined.
***POSSIBLE OBSCURE BUG*** could be caused when the compile flags
for the core happen to be different than a project who uses these
publics regarding -D_MBCS and -D_UNICODE. This added check might
have to be revisited later with a better understanding of the
reprocusions. I think TCHAR should be replaced with it's expansion.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclPlatDecls.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/generic/tclPlatDecls.h b/generic/tclPlatDecls.h index 08f8b0f..897d052 100644 --- a/generic/tclPlatDecls.h +++ b/generic/tclPlatDecls.h @@ -6,12 +6,21 @@ * Copyright (c) 1998-1999 by Scriptics Corporation. * All rights reserved. * - * RCS: @(#) $Id: tclPlatDecls.h,v 1.5 1999/04/30 22:45:02 stanton Exp $ + * RCS: @(#) $Id: tclPlatDecls.h,v 1.6 2000/08/20 03:51:23 davidg 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. + */ +#if defined(__WIN32__) && !defined(_INC_TCHAR) +#include <tchar.h> +#endif + /* !BEGIN!: Do not edit below this line. */ /* |