change "if defined(_WIN32)" to "#ifdef _WIN32"