I have Tornado at work but not at home, and sometimes have the opportunity to work at home using VC++. I checked the Tornado online docs, and took a visit to the blue donkey, but didn't see a list of Tornado predefined macros (I did see the gnu predefined stuff).
I would like to do something like:
#ifdef _THIS_VXWORKS
#include "vxWorks.h"
#else
#include "myHeaderFile.h"
#endif
or even something fancy like:
#ifdef _THIS_IS_VXWORKS
# ifdef _VXWORKS_VERSION_5_4
/* do something */
# endif
/* do something common to both */
# ifdef _VXWORKS_VERSION_5_5
/* do something else */
# endif
#endif
Can someone send me to the right documentation?
Thank you
__________________________________________________________________
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397
Get AOL Instant Messenger 5.1 free of charge. Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455
target/h/version.h: #define VXWORKS_VERSION ...
You could also put a -DWIN32 or -DVXWORKS in your makefiles, or if
you're using VC++ exclusively at home and gcc exclusively at work you
could use the VC++ or GNU macros to figure out what you're building.
-Brian St. Pierre