Browse Source

Merge pull request #4586 from chronoxor/master

Fix MinGW build
Feng Xiao 7 năm trước cách đây
mục cha
commit
92898e9e9c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/google/protobuf/stubs/mathlimits.h

+ 1 - 1
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); } \