From 50b417df2168acee5032be173a1775380a6276c5 Mon Sep 17 00:00:00 2001 From: vincentdarley Date: Mon, 14 Apr 2003 16:34:39 +0000 Subject: vc++ 5.2 compile fix --- ChangeLog | 2 ++ win/tclWinFile.c | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fc2b4a9..06a24ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ * generic/tclPathObj.c: * generic/tclFileSystem.h: overlooked one function which was duplicated, so this is now shared between modules. + * win/tclWinFile.c: allow this file to compile with VC++ 5.2 again + since Mingw build fixes broke that. 2003-04-13 Mo DeJong diff --git a/win/tclWinFile.c b/win/tclWinFile.c index faa1759..122eea0 100644 --- a/win/tclWinFile.c +++ b/win/tclWinFile.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinFile.c,v 1.46 2003/04/14 02:36:58 mdejong Exp $ + * RCS: @(#) $Id: tclWinFile.c,v 1.47 2003/04/14 16:34:40 vincentdarley Exp $ */ //#define _WIN32_WINNT 0x0500 @@ -128,6 +128,10 @@ typedef struct { WCHAR dummyBuf[MAX_PATH*3]; } DUMMY_REPARSE_BUFFER; +#if defined(_MSC_VER) && ( _MSC_VER <= 1100 ) +#define HAVE_NO_FINDEX_ENUMS +#endif + #ifdef HAVE_NO_FINDEX_ENUMS /* These two aren't in VC++ 5.2 headers */ typedef enum _FINDEX_INFO_LEVELS { -- cgit v0.12