mirror of
https://github.com/reactos/reactos.git
synced 2024-10-07 01:44:21 +00:00
[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:
parent
b8b7caccfe
commit
ff6c1ce972
|
@ -69,6 +69,13 @@
|
|||
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]))
|
||||
|
|
Loading…
Reference in a new issue