This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: Patch: fix tk so that it compiles under mingw
- From: Keith Seitz <keiths at redhat dot com>
- To: Mo DeJong <mdejong at uncounted dot org>
- Cc: Insight <insight at sources dot redhat dot com>
- Date: Fri, 22 Nov 2002 12:43:11 -0800 (PST)
- Subject: Re: Patch: fix tk so that it compiles under mingw
On Sun, 10 Nov 2002, Mo DeJong wrote:
> 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);
This patch does not build:
Creating library file: libcygtk83.a
tkWinDIalog.o(.text+0x25a9): In function `ChooseDirectoryHookProc':
/home/keiths/ref/cygwin/tk/win/../../../src/tk/win/tkWinDialog.c:1526:
undefined reference to `__T'
collect2: ld returned 1 exit status
This is with gcc 3.2 20020927 (latest from setup).
Keith