Or create your own #define in a Prefix file that you use with your CW
project.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Markus
Dresch
Sent: Tuesday, November 11, 2003 1:49 PM
To: Palm Developer Forum
Subject: Re: Define OS

if you use prc-tools you can add definitions to the preprocessor using
the -D flag.
example:
m68k-palmos-gcc -D_PalmOS -Wall -O2 -o test.o -c test.c

don't know how you'd do that for CW... however, if you use CW only for
palm
os development, you could use the __MWERKS__ definition.

markus dresch (www.palmside.com)


"Anders Rahm-Nilzon" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> What flag do I use to check if I'm running on PalmOS or Windows
>
> #ifdef <FLAG?>
>   some Palm specific code
> #elseif  _Win32
>   some Windows specific code
> #endif
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to