Cross Platform

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

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

#ifdef macintosh // mac

#elif windows // windows

#elif … you get the idea

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

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.