From 42e89511879453c75aa0af13642a24b172b52eef Mon Sep 17 00:00:00 2001 From: davidg Date: Sun, 20 Aug 2000 03:51:23 +0000 Subject: 2000-08-19 David Gravereaux * generic/tclPlatDecls.h: without a previous '#include ', 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. --- generic/tclPlatDecls.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 +#endif + /* !BEGIN!: Do not edit below this line. */ /* -- cgit v0.12