One thing you could try is:

#include <PalmOS.h>

...

#ifdef __PALMOS_H__

...

since <PalmOS.h> defines the symbol.

For pre-Palm OS 3.5, you could check for __PALMOS_TRAPS__ (defined inside
<Pilot.h> if I remember right)

Rgds,
Jun-Kiat Lam
Metrowerks Technical Support

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Prasanna
Kannan
Sent: Monday, July 10, 2000 1:38 PM
To: Palm Developer Forum
Subject: preprocessor definitions


Hi all

I am trying to port a large project from UNIX to
PalmOS. I am using codewarrior release 6. I am
wondering whether there is some setting in the IDE
from which i could make preprocessor definitions (just
like VC which has this feature in its settings). I
couldn't find one in the CW IDE.

i wud like to set something like "_PALM"

so that i cud use a series of #ifdef _PALM in the
source files and make them common to both unix and
palm... If doing this is not possible is there any
other way of including "Palm specific" files. Thanks a
lot in advance

Prasanna

__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail  Free email you can access from anywhere!
http://mail.yahoo.com/

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


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

Reply via email to