Thread: Os Detection
View Single Post
Old Nov 16th, 2004, 9:51 AM   #12
erebus
Programmer
 
erebus's Avatar
 
Join Date: Aug 2004
Location: /dev/null
Posts: 65
Rep Power: 5 erebus is on a distinguished road
Send a message via AIM to erebus
Quote:
Originally posted by Ooble

Good point. I'm officially an idiot. Screw that then - I'll just use different files. Thanks for the help though.
Actually, you can do something like:
#ifdef _WIN32
  #include <windows.h>
#endif

... common practice in winsock/bsd socket portability. Kinda vague, but you get the idea.
__________________
<span style='font-size:14pt;line-height:100%'><span style='color:red'>&quot;Political power grows out of the barrel of a gun&quot; - Mao Tse-Tung</span></span>
erebus is offline   Reply With Quote