From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8890 invoked by alias); 10 Nov 2002 18:49:57 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 8883 invoked from network); 10 Nov 2002 18:49:57 -0000 Received: from unknown (HELO mta7.pltn13.pbi.net) (64.164.98.8) by sources.redhat.com with SMTP; 10 Nov 2002 18:49:57 -0000 Received: from modrick ([66.120.11.181]) by mta7.pltn13.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with SMTP id <0H5D00C84IZ87F@mta7.pltn13.pbi.net> for insight@sources.redhat.com; Sun, 10 Nov 2002 10:49:57 -0800 (PST) Date: Sun, 10 Nov 2002 10:49:00 -0000 From: Mo DeJong Subject: Patch: fix tk so that it compiles under mingw To: Insight Message-id: <20021110105124.13c0c1fd.mdejong@uncounted.org> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-SW-Source: 2002-q4/txt/msg00090.txt.bz2 Here is a minor patch that allows Tk to be compiled under mingw. cheers Mo 2002-11-09 Mo DeJong * win/tkWinDialog.c (ChooseDirectoryHookProc): Use the _T macro instead of __TEXT since it works with VC++ and mingw. Newer releases of Tk make use of _T. Index: win/tkWinDialog.c =================================================================== RCS file: /cvs/src/src/tk/win/tkWinDialog.c,v retrieving revision 1.4 diff -u -r1.4 tkWinDialog.c --- win/tkWinDialog.c 24 Sep 2002 18:39:30 -0000 1.4 +++ win/tkWinDialog.c 10 Nov 2002 01:41:34 -0000 @@ -1523,7 +1523,7 @@ * Directory must exist. Complain, then rehighlight text. */ - wsprintf(tmp, __TEXT("Cannot change directory to \"%.200s\"."), + wsprintf(tmp, _T("Cannot change directory to \"%.200s\"."), cdPtr->path); MessageBox(hwnd, tmp, NULL, MB_OK); SendDlgItemMessage(hwnd, edt10, EM_SETSEL, 0, -1);