Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[VxW] Where to find list of predefined compiler Macros

153 views
Skip to first unread message

Greg

unread,
Aug 7, 2003, 5:55:19 AM8/7/03
to VxWorks Users Group List
Hello Everyone

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

Brian St. Pierre

unread,
Aug 8, 2003, 1:32:28 PM8/8/03
to
RTSW...@netscape.net (Greg) wrote:
> 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).

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

0 new messages