aboutsummaryrefslogtreecommitdiffstats
path: root/code/platform_linux/linux_release_compat.c
blob: 3a126dcac14cba238fb30c1e071f248ba1fb157a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <string.h>

// Link to the memcpy symbol with version 2.2.5 instead of the newer 2.14 one
// since they are functionaly equivalent, but using the old one allows 4coder
// to run on older distros without glibc >= 2.14

extern "C" {
    asm (".symver memcpy, memcpy@GLIBC_2.2.5");
    void *__wrap_memcpy(void *dest, const void *src, size_t n){
        return memcpy(dest, src, n);
    }
}