-
Advanced Member
Frequent Contributor
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
-
Advanced Member
Frequent Contributor
Re: Cross Platform
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
-
Re: Cross Platform
#ifdef macintosh // mac
...
#elif windows // windows
...
#elif ... you get the idea
Just check through the system headers for the appropriate definitions to check for.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules