PDA

View Full Version : Cross Platform



Gavin
09-20-2000, 06:33 AM
Related but not completely opengl I know but, what is the safest way of checking os in the preprocessor for unix/irix/mac/windows etc?
thanks

gav

Gavin
10-09-2000, 05:59 AM
In answer to my own question! :-0

May not be the safest but check for
windows
unix
macintosh
linux
to be defined, chack for Capitalisation etc. as
well..
gav

DJ Tricky S
10-29-2000, 08:50 PM
#ifdef macintosh // mac
...
#elif windows // windows
...
#elif ... you get the idea

Just check through the system headers for the appropriate definitions to check for.