THRIFT-2541 fixed C4003 with VC2012 around max()
Client: C++
Patch: Jens Geyer
diff --git a/lib/cpp/src/thrift/transport/TBufferTransports.h b/lib/cpp/src/thrift/transport/TBufferTransports.h
index 5c17d03..b669a59 100644
--- a/lib/cpp/src/thrift/transport/TBufferTransports.h
+++ b/lib/cpp/src/thrift/transport/TBufferTransports.h
@@ -335,13 +335,13 @@
     , wBufSize_(DEFAULT_BUFFER_SIZE)
     , rBuf_()
     , wBuf_(new uint8_t[wBufSize_])
-    , bufReclaimThresh_(std::numeric_limits<uint32_t>::max())
+    , bufReclaimThresh_((std::numeric_limits<uint32_t>::max)())
   {
     initPointers();
   }
 
   TFramedTransport(boost::shared_ptr<TTransport> transport, uint32_t sz,
-          uint32_t bufReclaimThresh = std::numeric_limits<uint32_t>::max())
+          uint32_t bufReclaimThresh = (std::numeric_limits<uint32_t>::max)())
     : transport_(transport)
     , rBufSize_(0)
     , wBufSize_(sz)