Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cross Platform identification

Status
Not open for further replies.

silicontoadet

Programmer
Jan 7, 2009
3
0
0
GB
Hi,

Maybe this is the wrong place to ask but I was wondering whether there is some header file out there that identifies the majority of the OS's/ compilers, architectures etc... at compile time, probably using macros i.e. checking for definitions such as _WIN32 for windows as defined by some compilers etc... or _i386_.
The purpose: when running a tool/compiled binary, I can identify which compiler architecture operating system was used to compile the binary. something of an issue when I'm dealing with a number of platforms.

TIA

TOAD
 
This is a useful list of macros and other things for identifying the compiler / OS / platform.



--
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top