Hi
Is there a way to test which compiler compiled the source.
e.g
#if __mswin
blah blah windows compiled
#elseif __unix
blah blah unix compiled
#elseif (whatever other os compilers available)
#endif
I'm trying to write programs that will run on MS Windows and Red Hat (Server type Programs)
Some of the inlcude files are specifiec to Windows and other to Linux and others are common to both.
I would not like to develop two seperate programs.
Thanks
Carel
Is there a way to test which compiler compiled the source.
e.g
#if __mswin
blah blah windows compiled
#elseif __unix
blah blah unix compiled
#elseif (whatever other os compilers available)
#endif
I'm trying to write programs that will run on MS Windows and Red Hat (Server type Programs)
Some of the inlcude files are specifiec to Windows and other to Linux and others are common to both.
I would not like to develop two seperate programs.
Thanks
Carel