I'm not sure what that MACRO is below, but Codewarrior fully supports the normal C way 
of ifdef's, and I"d assume PRC would as well:

#ifndef  __MWERKS__
#endif

However, under Codewarrior I define a prefix file (which is included before all files) 
in which I just #define PALMOS.  On a
different platform, that prefix file isn't included, or overridden by other defines 
like
#ifdef WIN32


Eugene Mayevski wrote:

> Hello!
>
> I am porting some code to Palm, and I was wondering how should the code like
> when there is a need to #ifdef some declaration. With codeWarrior the define
> looks like
> #if !defined(__MWERKS__) || !defined(__MC68K__)
> // not Palm
> #endif
>
> What precompiler defines are used by PRC tools? thank you.
>
> --
> Sincerely yours,
> Eugene Mayevski
>
> --
> 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