Ada: support for memcmp

This commit is contained in:
Alexander Senier 2018-06-21 21:04:27 +02:00 committed by Norman Feske
parent ea8b7d8128
commit ad3f020605
2 changed files with 11 additions and 1 deletions

View File

@ -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

View 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);
}
}