From 23f5370dcf17262b7e5d5c64a59339f1cd7278e6 Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Thu, 6 May 2004 03:04:58 +0000 Subject: [PATCH] Added cdecl. committer: mfx 1083812698 +0000 --- src/stub/l_lx_elf.c | 1 + src/stub/l_lx_exec.c | 1 + src/stub/l_lx_sep.c | 1 + src/stub/l_lx_sh.c | 1 + 4 files changed, 4 insertions(+) diff --git a/src/stub/l_lx_elf.c b/src/stub/l_lx_elf.c index ec126cd7..faab6fc5 100644 --- a/src/stub/l_lx_elf.c +++ b/src/stub/l_lx_elf.c @@ -94,6 +94,7 @@ do_brk(void *addr) } static char * +__attribute__((cdecl)) do_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) { (void)len; (void)prot; (void)flags; (void)fd; (void)offset; diff --git a/src/stub/l_lx_exec.c b/src/stub/l_lx_exec.c index 513a7dff..a4a999e4 100644 --- a/src/stub/l_lx_exec.c +++ b/src/stub/l_lx_exec.c @@ -128,6 +128,7 @@ static uint32_t ascii5(char *p, uint32_t v, unsigned n) static char * +__attribute__((cdecl)) do_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) { (void)len; (void)prot; (void)flags; (void)fd; (void)offset; diff --git a/src/stub/l_lx_sep.c b/src/stub/l_lx_sep.c index a438e77c..f38f82d8 100644 --- a/src/stub/l_lx_sep.c +++ b/src/stub/l_lx_sep.c @@ -112,6 +112,7 @@ do_brk(void *addr) } static char * +__attribute__((cdecl)) do_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) { (void)len; (void)prot; (void)flags; (void)fd; (void)offset; diff --git a/src/stub/l_lx_sh.c b/src/stub/l_lx_sh.c index c3391632..8a294d97 100644 --- a/src/stub/l_lx_sh.c +++ b/src/stub/l_lx_sh.c @@ -94,6 +94,7 @@ do_brk(void *addr) } static char * +__attribute__((cdecl)) do_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) { (void)len; (void)prot; (void)flags; (void)fd; (void)offset;