This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: fix tk so that it compiles under mingw


Here is a minor patch that allows Tk to be compiled under mingw.

cheers
Mo

2002-11-09  Mo DeJong  <mdejong@uncounted.org>

	* 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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]