aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/stubs/mathlimits.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/google/protobuf/stubs/mathlimits.h')
-rw-r--r--src/google/protobuf/stubs/mathlimits.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/stubs/mathlimits.h b/src/google/protobuf/stubs/mathlimits.h
index 2391ac4c..9c9d0e9a 100644
--- a/src/google/protobuf/stubs/mathlimits.h
+++ b/src/google/protobuf/stubs/mathlimits.h
@@ -243,7 +243,7 @@ DECL_UNSIGNED_INT_LIMITS(unsigned long long int)
#endif
// ========================================================================= //
-#ifdef WIN32 // Lacks built-in isnan() and isinf()
+#if WIN32 && !__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); } \