For CW development I create an Environment header and set it as a prefix file so it is 
included before all files.

In that header file I define things like #define PALMOS.

If you are compiling anywhere else, you won't have that prefix header in your project, 
and so PALMOS won't be defined.

If you are doing different targets within codewarrior, you can specify a different 
prefix header for each project target.

Chris DiPierro wrote:

> Is there something I can #ifdef for to see if I'm building on PalmOS on CW?
> Trying to write some portable code, but needs to #include PalmOS.h and do a
> few variable typedefs if I'm on Palm. Does CW define something to check for?
>
> --
> 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