Include <cstring> and use "std::" for memcpy in TBufferTransports.h.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666497 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/transport/TBufferTransports.h b/lib/cpp/src/transport/TBufferTransports.h
index a36562e..3d81a66 100644
--- a/lib/cpp/src/transport/TBufferTransports.h
+++ b/lib/cpp/src/transport/TBufferTransports.h
@@ -7,6 +7,7 @@
 #ifndef _THRIFT_TRANSPORT_TBUFFERTRANSPORTS_H_
 #define _THRIFT_TRANSPORT_TBUFFERTRANSPORTS_H_ 1
 
+#include <cstring>
 #include "boost/scoped_array.hpp"
 
 #include <transport/TTransport.h>
@@ -48,7 +49,7 @@
   uint32_t read(uint8_t* buf, uint32_t len) {
     uint8_t* new_rBase = rBase_ + len;
     if (TDB_LIKELY(new_rBase <= rBound_)) {
-      memcpy(buf, rBase_, len);
+      std::memcpy(buf, rBase_, len);
       rBase_ = new_rBase;
       return len;
     }
@@ -67,7 +68,7 @@
   void write(const uint8_t* buf, uint32_t len) {
     uint8_t* new_wBase = wBase_ + len;
     if (TDB_LIKELY(new_wBase <= wBound_)) {
-      memcpy(wBase_, buf, len);
+      std::memcpy(wBase_, buf, len);
       wBase_ = new_wBase;
       return;
     }