From a5fa2276832bf18cf14cded757a1e15068a422ec Mon Sep 17 00:00:00 2001 From: nijtmans Date: Tue, 20 Apr 2010 19:57:46 +0000 Subject: Define OPENFILENAME_SIZE_VERSION_400 if needed --- ChangeLog | 1 + win/tkWinDialog.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8e9ebfb..1cb1a29 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,7 @@ * generic/tkPort.h Make sure that tkWinPort.h is always included * generic/tkIntXlibDecls.h before tcl.h, otherwise the fallback for TCHAR * win/tkWinPort.h might go off before the inclusion of + * win/tkWinDialog.c Define OPENFILENAME_SIZE_VERSION_400 if needed * compat/stdlib.h Include only when not already done. * compat/unistd.h * generic/tkInt.h tkPort.h already includes tk.h, which includes tcl.h diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c index 7c9ebbb..041aea8 100644 --- a/win/tkWinDialog.c +++ b/win/tkWinDialog.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinDialog.c,v 1.72 2010/04/19 13:49:24 nijtmans Exp $ + * RCS: @(#) $Id: tkWinDialog.c,v 1.73 2010/04/20 19:57:46 nijtmans Exp $ * */ @@ -51,6 +51,10 @@ #endif #endif /* BFFM_VALIDATEFAILED */ +#ifndef OPENFILENAME_SIZE_VERSION_400 +#define OPENFILENAME_SIZE_VERSION_400 76 +#endif + /* * The following structure is used by the new Tk_ChooseDirectoryObjCmd to pass * data between it and its callback. Unqiue to Winodws platform. -- cgit v0.12