aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Shynkarenka <chronoxor@gmail.com>2018-05-02 15:15:57 +0300
committerIvan Shynkarenka <chronoxor@gmail.com>2018-05-02 22:37:17 +0300
commit34741553718222d9d29a349e5b4d6b8b9e3529fb (patch)
treee39fd97a2a5287ebc1d571b8f8ccf10b278af5a8
parentb0403a7db85b8550e52848d7596886334e46e45f (diff)
downloadprotobuf-34741553718222d9d29a349e5b4d6b8b9e3529fb.tar.gz
protobuf-34741553718222d9d29a349e5b4d6b8b9e3529fb.tar.bz2
protobuf-34741553718222d9d29a349e5b4d6b8b9e3529fb.zip
MinGW build failed
-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); } \