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/
