At 01:49 AM 8/27/2003, Mayank Babu Rastogi, Noida wrote:
Hi,

Could somebody please tell me how to set the comple time definitions in the
IDE of codeWarrior?
I'm explaining my query with the code example below:

# ifdef OS_WINDOWS
        {

        }
#else
        {

        }
#endif

In the above snippet, I need to define, OS_WINDOWS ( the scope of OS_WINDOWS
define should be the whole project). How it could be defined in the
CodeWarrior IDE environment?

Please review the compiler manual for the use of prefix files. These are source files that get #included before each file compiled by the CodeWarrior compiler, and your active prefix file is defined in the C/C++ Compiler settings. You can use a prefix file to define custom symbols that are used by all of your source files or include common header files or precompiled headers.


--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



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

Reply via email to