scc

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

commit 10bf24746bcc260ca494e39fb68c34fd5893d566
parent d13b1476f5273e9fb3a13fd7eb432d47612033c1
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat, 13 Jun 2020 18:34:49 +0200

libc: Add sys/cdefs.h

This new header contains all the common definitions of the
system in only one file. It makes easier to port to
new systems and to fix errors.

Diffstat:
Ainclude/bits/darwin/sys/cdefs.h | 0
Ainclude/bits/dragonfly/sys/cdefs.h | 0
Ainclude/bits/linux/sys/cdefs.h | 0
Ainclude/bits/netbsd/sys/cdefs.h | 0
Ainclude/bits/openbsd/sys/cdefs.h | 0
Minclude/locale.h | 1+
Minclude/stddef.h | 1+
Minclude/stdlib.h | 1+
Minclude/string.h | 1+
Minclude/time.h | 1+
10 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/bits/darwin/sys/cdefs.h b/include/bits/darwin/sys/cdefs.h diff --git a/include/bits/dragonfly/sys/cdefs.h b/include/bits/dragonfly/sys/cdefs.h diff --git a/include/bits/linux/sys/cdefs.h b/include/bits/linux/sys/cdefs.h diff --git a/include/bits/netbsd/sys/cdefs.h b/include/bits/netbsd/sys/cdefs.h diff --git a/include/bits/openbsd/sys/cdefs.h b/include/bits/openbsd/sys/cdefs.h diff --git a/include/locale.h b/include/locale.h @@ -2,6 +2,7 @@ #define _LOCALE_H #define _NEED_NULL +#include <sys/cdefs.h> #include <arch/cdefs.h> #define LC_ALL 0 diff --git a/include/stddef.h b/include/stddef.h @@ -5,6 +5,7 @@ #define _NEED_WCHAR_T #define _NEED_PTRDIFFT #define _NEED_NULL +#include <sys/cdefs.h> #include <arch/cdefs.h> #define offsetof(st, m) ((size_t)&(((st *)0)->m)) diff --git a/include/stdlib.h b/include/stdlib.h @@ -4,6 +4,7 @@ #define _NEED_NULL #define _NEED_SIZET #define _NEED_WCHART +#include <sys/cdefs.h> #include <arch/cdefs.h> #include <arch/stdlib.h> diff --git a/include/string.h b/include/string.h @@ -3,6 +3,7 @@ #define _NEED_SIZET #define _NEED_NULL +#include <sys/cdefs.h> #include <arch/cdefs.h> #include <arch/string.h> diff --git a/include/time.h b/include/time.h @@ -3,6 +3,7 @@ #define _NEED_SIZET #define _NEED_NULL +#include <sys/cdefs.h> #include <arch/cdefs.h> #include <arch/time.h>