MSVC isn't the only platform that doesn't necessarily have INFINITY/NAN