Fixing Windows-only pragmas not checking if on WIN32 platform