diff options
author | mdejong <mdejong@noemail.net> | 2001-08-02 20:15:39 (GMT) |
---|---|---|
committer | mdejong <mdejong@noemail.net> | 2001-08-02 20:15:39 (GMT) |
commit | b3c38f09c79feeb1fbf36631289a36686e7258ab (patch) | |
tree | 4c0651659ddc2d0ca9eef97c4e9e42a694a297d5 /generic/tclPlatDecls.h | |
parent | 0efad04430da960cf7c68985bf4c238a4e2d704c (diff) | |
download | tcl-b3c38f09c79feeb1fbf36631289a36686e7258ab.zip tcl-b3c38f09c79feeb1fbf36631289a36686e7258ab.tar.gz tcl-b3c38f09c79feeb1fbf36631289a36686e7258ab.tar.bz2 |
* generic/tclPlatDecls.h:
* win/tclWinPort.h:
Revert <tchar.h> related changes made to improve
Cygwin support on 2001-07-18. This change ended
up breaking the VC++ build because of conflicts
between Windows APIs and internal Tk APIs.
FossilOrigin-Name: 5e4792ac7a8977d948af62bea600a3649bd8429e
Diffstat (limited to 'generic/tclPlatDecls.h')
-rw-r--r-- | generic/tclPlatDecls.h | 32 |
1 files changed, 7 insertions, 25 deletions
diff --git a/generic/tclPlatDecls.h b/generic/tclPlatDecls.h index 7faa605..209de2d 100644 --- a/generic/tclPlatDecls.h +++ b/generic/tclPlatDecls.h @@ -6,38 +6,20 @@ * Copyright (c) 1998-1999 by Scriptics Corporation. * All rights reserved. * - * RCS: @(#) $Id: tclPlatDecls.h,v 1.7 2001/07/19 06:40:09 mdejong Exp $ + * RCS: @(#) $Id: tclPlatDecls.h,v 1.8 2001/08/02 20:15:40 mdejong Exp $ */ #ifndef _TCLPLATDECLS #define _TCLPLATDECLS /* - * Define TCHAR by pulling in <windows.h>. Hopefully the compile flags - * of the Tcl core will match those of your project so that TCHAR - * will be defined the same way. BE AWARE. + * 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. */ - -#ifdef __WIN32__ - -#ifdef CHECK_UNICODE_CALLS - -#define _UNICODE -#define UNICODE - -#define __TCHAR_DEFINED -typedef float *_TCHAR; - -#define _TCHAR_DEFINED -typedef float *TCHAR; - -#endif /* CHECK_UNICODE_CALLS */ - -# define WIN32_LEAN_AND_MEAN -# include <windows.h> -# undef WIN32_LEAN_AND_MEAN - -#endif /* __WIN32__ */ +#if defined(__WIN32__) && !defined(_INC_TCHAR) +#include <tchar.h> +#endif /* !BEGIN!: Do not edit below this line. */ |