From fd035c0a3d361e513fe7916b67e14ff702983153 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Sat, 4 Feb 2017 17:45:17 +0100 Subject: Clean up compilation Instead of mixing standard headers and internal redefinitions of standard types, completely rely on the compiler for what is guaranteed for a free standing environment. This results in the removal of kern/stddef.h and kern/stdint.h. The kern/types.h header is reintroduced for the different (and saner) purpose of defining types not specified in standard C, namely ssize_t for now. --- kern/macros.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'kern/macros.h') diff --git a/kern/macros.h b/kern/macros.h index 068bb035..a5b7b032 100644 --- a/kern/macros.h +++ b/kern/macros.h @@ -22,7 +22,7 @@ #define _KERN_MACROS_H #ifndef __ASSEMBLER__ -#include +#include #endif /* __ASSEMBLER__ */ #define MACRO_BEGIN ({ @@ -64,7 +64,11 @@ #define __noreturn __attribute__((noreturn)) #define __aligned(x) __attribute__((aligned(x))) + +#ifndef __always_inline #define __always_inline inline __attribute__((always_inline)) +#endif /* __attribute__ */ + #define __section(x) __attribute__((section(x))) #define __packed __attribute__((packed)) #define __alias(x) __attribute__((alias(x))) -- cgit v1.2.3