From edbd31e02d43a161e7d517d66106cbd7177e3fa1 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Mon, 30 Nov 2020 05:00:47 +0500 Subject: [PATCH] Add header --- Makefile.am | 3 ++- include/Makefile.am | 3 ++- include/kernaux/stdlib.h | 12 ++++++++++++ src/stdlib.c | 1 + 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 include/kernaux/stdlib.h create mode 100644 src/stdlib.c diff --git a/Makefile.am b/Makefile.am index 4d52593..0e58f54 100644 --- a/Makefile.am +++ b/Makefile.am @@ -19,7 +19,8 @@ libkernaux_a_SOURCES = \ src/multiboot2/helpers.c \ src/multiboot2/is_valid.c \ src/multiboot2/print.c \ - src/pfa.c + src/pfa.c \ + src/stdlib.c tests_multiboot2_print1_SOURCES = \ $(libkernaux_a_SOURCES) \ diff --git a/include/Makefile.am b/include/Makefile.am index eaafdef..60be18f 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -1,4 +1,5 @@ nobase_include_HEADERS = \ kernaux/arch/i386.h \ kernaux/multiboot2.h \ - kernaux/pfa.h + kernaux/pfa.h \ + kernaux/stdlib.h diff --git a/include/kernaux/stdlib.h b/include/kernaux/stdlib.h new file mode 100644 index 0000000..efcec5e --- /dev/null +++ b/include/kernaux/stdlib.h @@ -0,0 +1,12 @@ +#ifndef KERNAUX_INCLUDED_STDLIB +#define KERNAUX_INCLUDED_STDLIB 1 + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/src/stdlib.c b/src/stdlib.c new file mode 100644 index 0000000..a473acc --- /dev/null +++ b/src/stdlib.c @@ -0,0 +1 @@ +#include