fix incorrect use of _WIN32
Merge pull request #1606 from WalterBright/refactor6

fix incorrect use of _WIN32