Index: src/unicode-inl.h |
diff --git a/src/unicode-inl.h b/src/unicode-inl.h |
index 02be45768883804d8136f66bf6c5a67023b73bc8..f861f9f2d47449945d62a6fbc8044abbcd0b2a2b 100644 |
--- a/src/unicode-inl.h |
+++ b/src/unicode-inl.h |
@@ -30,6 +30,7 @@ |
#include "unicode.h" |
#include "checks.h" |
+#include "platform.h" |
namespace unibrow { |
@@ -202,7 +203,7 @@ unsigned Utf8Decoder<kBufferSize>::WriteUtf16(uint16_t* data, |
unsigned buffer_length = |
last_byte_of_buffer_unused_ ? kBufferSize - 1 : kBufferSize; |
unsigned memcpy_length = length <= buffer_length ? length : buffer_length; |
- memcpy(data, buffer_, memcpy_length*sizeof(uint16_t)); |
+ v8::internal::OS::MemCopy(data, buffer_, memcpy_length*sizeof(uint16_t)); |
if (length <= buffer_length) return length; |
ASSERT(unbuffered_start_ != NULL); |
// Copy the rest the slow way. |