Author: akhaldi
Date: Thu Dec 27 22:26:35 2012
New Revision: 58021
URL:
http://svn.reactos.org/svn/reactos?rev=58021&view=rev
Log:
[CRT/BUILTINS]
* memcpy should behave exactly like memmove for Windows compatibility.
CORE-6833 #resolve #comment Committed in r58021.
Modified:
trunk/reactos/include/crt/mingw32/intrin_x86.h
Modified: trunk/reactos/include/crt/mingw32/intrin_x86.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/crt/mingw32/intrin…
==============================================================================
--- trunk/reactos/include/crt/mingw32/intrin_x86.h [iso-8859-1] (original)
+++ trunk/reactos/include/crt/mingw32/intrin_x86.h [iso-8859-1] Thu Dec 27 22:26:35 2012
@@ -68,6 +68,13 @@
#ifdef __cplusplus
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))