From 8e2c58e8baf3ad9d93cf7902856b4eb01aa9a7aa Mon Sep 17 00:00:00 2001 From: James Wang Date: Sun, 12 Sep 2021 20:43:48 +0800 Subject: [PATCH] Drop 32bit headers dependency This is a bugfix, I included header files of system, not our- selfs. It leds to the project have to dependency the glibc-devel-32bit or glibc-devel.i686 package. Signed-off-by: James Wang --- include/common.h | 2 -- {lib => include}/ctype.h | 0 include/string.h | 9 +++++++++ 3 files changed, 9 insertions(+), 2 deletions(-) rename {lib => include}/ctype.h (100%) create mode 100644 include/string.h diff --git a/include/common.h b/include/common.h index bd4ec38..fef2007 100644 --- a/include/common.h +++ b/include/common.h @@ -1,8 +1,6 @@ #ifndef __COMMON_H #define __COMMON_H #include "font.h" -#include -#include void io_hlt(void); void io_cli(void); diff --git a/lib/ctype.h b/include/ctype.h similarity index 100% rename from lib/ctype.h rename to include/ctype.h diff --git a/include/string.h b/include/string.h new file mode 100644 index 0000000..8a945ab --- /dev/null +++ b/include/string.h @@ -0,0 +1,9 @@ + +#ifndef _STRING_H +#define _STRING_H +#include "ctype.h" + +#define NULL 0ULL +size_t strnlen(const char *s, size_t maxlen); +int strncmp(const char *s1, const char *s2, size_t n); +#endif