Skip to content
Snippets Groups Projects
Commit 2cf2389e authored by Craig Tiller's avatar Craig Tiller
Browse files

Refine platform detection

parent 00572a9d
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,11 @@
* Enable by setting LDFLAGS=-Wl,-wrap,memcpy when linking.
*/
#ifdef __linux__
__asm__(".symver memcpy,memcpy@GLIBC_2.2.5");
void *__wrap_memcpy(void *destination, const void *source, size_t num) {
return memcpy(destination, source, num);
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment