This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: misdefined macro _T in winnt.h
- To: Eric Paire <paire at ri dot silicomp dot fr>
- Subject: Re: misdefined macro _T in winnt.h
- From: Earnie Boyd <earnie_boyd at yahoo dot com>
- Date: Fri, 02 Feb 2001 12:02:35 -0500
- CC: Earnie Boyd <cygwin at cygwin dot com>, Eric PAIRE <eric dot paire at ri dot silicomp dot com>
- References: <200102020851.JAA10812@mailhost.ri.silicomp.fr>
- Reply-To: Earnie Boyd <cygwin at cygwin dot com>
Eric Paire wrote:
>
>
> ------ Cut Here ------ Cut Here ------ Cut Here ------ Cut Here ------
> #ifdef _UNICODE
> #define __TEXT(q) L ## q
> #else
> #define __TEXT(q) q
> #endif
>
> // Force the evaluation of q before the evaluation of __TEXT
> #ifndef _TEXT
> #define _TEXT(q) __TEXT(q)
> #endif
>
> // Notice that _T must absolutely behave in the same way as _TEXT
> #ifndef _T
> #define _T(q) __TEXT(q)
> #endif
> ------ Cut Here ------ Cut Here ------ Cut Here ------ Cut Here ------
>
> With this patch,
>
> _T("foo") expand as L"foo"
> _T(FOO) expands also as L"foo"
>
Ah, now I get it. Thanks Eric. I've already fixed tchar.h. I'll get
to winnt.h after I put out some fires.
Earnie.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple