title: Best (cleanest) way for writing platform specific code
body: <p>Say you have a piece of code that must be different depending on the operating system your program is running on.<br>
  There's the old school way of doing it:</p>
  
  <pre><code>#ifdef WIN32
     // code for Windows systems
  #else
     // code for other systems
  #endif
  </code></pre>
  
  <p>But there must be cleaner solutions that this one, right?</p>