scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 2f8add0bc5f01b92bde7bfd55faa95e2598397e6
parent f129ac0f17718ed25d141fae62217cdb1bcbc934
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat, 28 Aug 2021 11:53:55 +0200

libc: Fix compilation

After the last changes there were some definitions lost
and this commit adds the inclusion path needed for it
and a few include directives.

Diffstat:
Msrc/libc/rules.mk | 1+
Msrc/libc/stdio/vfprintf.c | 1+
Msrc/libc/stdlib/atexit.c | 2++
3 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/libc/rules.mk b/src/libc/rules.mk @@ -5,6 +5,7 @@ CINCLUDES =\ -I$(INCDIR)\ -I$(INCDIR)/bits/$(SYS)\ -I$(INCDIR)/bits/$(ARCH)\ + -I$(INCDIR)/bits/$(SYS)/$(ARCH)\ MORE_ARFLAGS = -u diff --git a/src/libc/stdio/vfprintf.c b/src/libc/stdio/vfprintf.c @@ -4,6 +4,7 @@ #include <stdint.h> #include <stdio.h> #include <string.h> +#include <wchar.h> #define MAXPREC 50 diff --git a/src/libc/stdlib/atexit.c b/src/libc/stdlib/atexit.c @@ -1,6 +1,8 @@ #include <stdlib.h> #include <errno.h> +#include "../libc.h" + #undef atexit int