From 0897d18a0a66b7942d8cecc7c8652192f47df66c Mon Sep 17 00:00:00 2001 From: liaogang Date: Thu, 20 Jul 2017 10:05:54 +0800 Subject: [PATCH] Fix string.h for memcpy --- paddle/memory/memory.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/memory/memory.cc b/paddle/memory/memory.cc index a7d7fa0bfe4..4056a54b4a3 100644 --- a/paddle/memory/memory.cc +++ b/paddle/memory/memory.cc @@ -16,7 +16,7 @@ limitations under the License. */ #include "paddle/memory/detail/buddy_allocator.h" #include "paddle/memory/detail/system_allocator.h" -#include // for memcpy +#include // for memcpy namespace paddle { namespace memory { @@ -50,7 +50,7 @@ template <> void Copy(platform::CPUPlace, void* dst, platform::CPUPlace, const void* src, size_t num) { - memcpy(dst, src, num); + std::memcpy(dst, src, num); } #ifndef PADDLE_ONLY_CPU -- GitLab