delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/02/12:03:32

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Apparently-From: <earnie?boyd AT yahoo DOT com>
Message-ID: <3A7AE82B.7550B4C1@yahoo.com>
Date: Fri, 02 Feb 2001 12:02:35 -0500
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: Earnie Boyd <cygwin AT cygwin DOT com>
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Eric Paire <paire AT ri DOT silicomp DOT fr>
CC: Earnie Boyd <cygwin AT cygwin DOT com>, Eric PAIRE <eric DOT paire AT ri DOT silicomp DOT com>
Subject: Re: misdefined macro _T in winnt.h
References: <200102020851 DOT JAA10812 AT mailhost DOT ri DOT silicomp DOT fr>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019