From e5862cd912ca5af36f5622433059475d99cbf04f Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 27 Mar 2019 13:24:20 -0400 Subject: [PATCH] mathlimits: check for _WIN32 and __MINGW32__ existence --- src/google/protobuf/stubs/mathlimits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/stubs/mathlimits.h b/src/google/protobuf/stubs/mathlimits.h index e603947a47..0e8443228c 100644 --- a/src/google/protobuf/stubs/mathlimits.h +++ b/src/google/protobuf/stubs/mathlimits.h @@ -245,7 +245,7 @@ DECL_UNSIGNED_INT_LIMITS(unsigned long long int) #endif // ========================================================================= // -#if WIN32 && !__MINGW32__ // Lacks built-in isnan() and isinf() +#if defined(_WIN32) && !defined(__MINGW32__) // Lacks built-in isnan() and isinf() #define DECL_FP_LIMIT_FUNCS \ static bool IsFinite(const Type x) { return _finite(x); } \ static bool IsNaN(const Type x) { return _isnan(x); } \