[CRT/BUILTINS]

* memcpy should behave exactly like memmove for Windows compatibility.
CORE-6833 #resolve #comment Committed in r58021.

svn path=/trunk/; revision=58021
This commit is contained in:
Amine Khaldi 2012-12-27 22:26:35 +00:00
parent b8b7caccfe
commit ff6c1ce972

View file

@ -69,6 +69,13 @@
extern "C" { extern "C" {
#endif #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 ***/ /*** Stack frame juggling ***/
#define _ReturnAddress() (__builtin_return_address(0)) #define _ReturnAddress() (__builtin_return_address(0))
#define _AddressOfReturnAddress() (&(((void **)(__builtin_frame_address(0)))[1])) #define _AddressOfReturnAddress() (&(((void **)(__builtin_frame_address(0)))[1]))