THRIFT-4081: appveyor retooling - added mingw64 build as a second job to the CI build process
This closes #1205
diff --git a/lib/py/src/ext/module.cpp b/lib/py/src/ext/module.cpp
index 34ec7f6..7158b8f 100644
--- a/lib/py/src/ext/module.cpp
+++ b/lib/py/src/ext/module.cpp
@@ -87,12 +87,7 @@
}
T protocol;
-#ifdef _MSC_VER
- // workaround strange VC++ 2015 bug where #else path does not compile
- int32_t default_limit = INT32_MAX;
-#else
- int32_t default_limit = std::numeric_limits<int32_t>::max();
-#endif
+ int32_t default_limit = (std::numeric_limits<int32_t>::max)();
protocol.setStringLengthLimit(
as_long_then_delete(PyObject_GetAttr(oprot, INTERN_STRING(string_length_limit)),
default_limit));