mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
Ada: support for memcmp
This commit is contained in:
parent
ea8b7d8128
commit
ad3f020605
@ -21,7 +21,7 @@ CUSTOM_ADA_INCLUDE = -I- -I$(REP_DIR)/src/lib/ada/runtime -I$(ADA_RTS_SOURCE) -I
|
||||
SRC_CC += a-except_c.cc s-soflin_c.cc a-exctab_c.cc
|
||||
|
||||
# C runtime glue code
|
||||
SRC_CC += s-secsta_c.cc
|
||||
SRC_CC += s-secsta_c.cc libc.cc
|
||||
|
||||
# Ada packages that implement runtime functionality
|
||||
SRC_ADB += ss_utils.adb
|
||||
|
10
repos/libports/src/lib/ada/runtimelib/libc.cc
Normal file
10
repos/libports/src/lib/ada/runtimelib/libc.cc
Normal file
@ -0,0 +1,10 @@
|
||||
#include <base/stdint.h>
|
||||
#include <util/string.h>
|
||||
|
||||
extern "C" {
|
||||
|
||||
int memcmp(const void *s1, const void *s2, Genode::size_t n)
|
||||
{
|
||||
return Genode::memcmp(s1, s2, n);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user