linux-old-glibc-compat.c 274 B

123456789101112131415161718
  1. #include <stdint.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. __asm__(".symver memcpy,memcpy@GLIBC_2.2.5");
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. extern void *__wrap_memcpy(void *dest,const void *src,size_t n)
  9. {
  10. return memcpy(dest,src,n);
  11. }
  12. #ifdef __cplusplus
  13. }
  14. #endif