Hi Thomas,

For CodeWarrior the predefined symbol is __MWERKS__.

#ifdef __MWERKS__
// blah blah
#else
// yadda yadda
#endif

Rgds,
Jun-Kiat Lam
Metrowerks Technical Support

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Thomas
Gaudin
Sent: Thursday, June 22, 2000 4:01 AM
To: Palm Developer Forum
Subject: conditional #include with Code Warrior


Hi,

How can I know what compiler is working during compilation.
I mean I'd like to do something like this :

#if COMPILER = CODE_WARRIOR_ONE
#include <Pilot.h>
#else
#include <string.h>
#endif

thanks to ones that can help

thomas


--
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