title: Get the current operating system during runtime in C++
body: <p>I need to figure out the operating system my program is running on during runtime.</p>
  <p>I'm using Qt 4.6.2, MinGW and Eclipse with CDT. My program shall run a command-line QProcess on Windows or Linux. Now I need a kind of switch to run the different code depending on the operating system.</p>