Checking System

Hi Guys,
I am trying to write a Program that will be usable on most OS's, but I was wondering, how do I make it so that it will check its operating system, that way I can do something like this:
1
2
3
4
if (System == Windows)
System (COLOR 0a);
Else if (System == Linux)
::Change Color of Linux Text::

Thank you for the help!
You can use Macros to check which OS is this...
e.g
#if defined __linux__
// Write The code for Linux
#else
// Write the code for Other OSs
#endif
Enjoy the Life Brother... :D
Topic archived. No new replies allowed.