[CRT/BUILTINS]
authorAmine Khaldi <amine.khaldi@reactos.org>
Thu, 27 Dec 2012 22:26:35 +0000 (22:26 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Thu, 27 Dec 2012 22:26:35 +0000 (22:26 +0000)
* memcpy should behave exactly like memmove for Windows compatibility.
CORE-6833 #resolve #comment Committed in r58021.

svn path=/trunk/; revision=58021

reactos/include/crt/mingw32/intrin_x86.h

index 4774c39..60f5ea9 100644 (file)
 extern "C" {
 #endif
 
+/*** memcopy must be memmove ***/
+__INTRIN_INLINE void* memcpy(void* dest, const void* source, size_t num)
+{
+    return memmove(dest, source, num);
+}
+
+
 /*** Stack frame juggling ***/
 #define _ReturnAddress() (__builtin_return_address(0))
 #define _AddressOfReturnAddress() (&(((void **)(__builtin_frame_address(0)))[1]))