public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* TEXT macro on UNIX
@ 2005-05-31  5:25 Mohit Kumar
  2005-05-31  5:36 ` Craig Jeffree
  0 siblings, 1 reply; 2+ messages in thread
From: Mohit Kumar @ 2005-05-31  5:25 UTC (permalink / raw)
  To: gcc-help

Hi All,

Currently I am in the process of porting a certain Windows application
to UNIX and have hit a road blocker (atleast I consider it to be one).
The windows code uses  TEXT macro whose help is as below:

The TEXT macro identifies a string as Unicode when the UNICODE is
defined during compilation. Otherwise, it identifies a string as an
ANSI string.
TEXT ( 
     LPTSTR string
)

I was wondering if there is a similar macro on GCC. And if it does not
exist, could any one tell me how to write this?

Thanks.
Mohit

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: TEXT macro on UNIX
  2005-05-31  5:25 TEXT macro on UNIX Mohit Kumar
@ 2005-05-31  5:36 ` Craig Jeffree
  0 siblings, 0 replies; 2+ messages in thread
From: Craig Jeffree @ 2005-05-31  5:36 UTC (permalink / raw)
  To: Mohit Kumar; +Cc: gcc-help

Hi Mohit,

I'm not sure if there is an existing gcc equivalent, but if TEXT is a
macro then you would be able to see how it was written on windows by
looking in the header file that it comes from.

Cheers,
Craig.

On Tue, 2005-05-31 at 15:25, Mohit Kumar wrote:
> Hi All,
> 
> Currently I am in the process of porting a certain Windows application
> to UNIX and have hit a road blocker (atleast I consider it to be one).
> The windows code uses  TEXT macro whose help is as below:
> 
> The TEXT macro identifies a string as Unicode when the UNICODE is
> defined during compilation. Otherwise, it identifies a string as an
> ANSI string.
> TEXT ( 
>      LPTSTR string
> )
> 
> I was wondering if there is a similar macro on GCC. And if it does not
> exist, could any one tell me how to write this?
> 
> Thanks.
> Mohit

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-31  5:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-31  5:25 TEXT macro on UNIX Mohit Kumar
2005-05-31  5:36 ` Craig Jeffree

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).