diff options
Diffstat (limited to 'lib/libc/include/libc.h')
| -rw-r--r-- | lib/libc/include/libc.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/libc/include/libc.h b/lib/libc/include/libc.h index 6651feaa..6f233d35 100644 --- a/lib/libc/include/libc.h +++ b/lib/libc/include/libc.h @@ -2,21 +2,15 @@ #define __LIBC_LIBC_H #include <stdatomic.h> -#include <features.h> - -#include <__stdio.h> -#include <thread.h> - -#define __IMPL(_v) ((__##typeof(_v))_v) #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) #define __unused __attribute__((unused)) #define aligned(type) __attribute__((aligned(__alignof__(type)))) #define weak_reference(old, new) \ - extern __typeof(old) new __attribute__((__weak__, __alias__(#old))) + extern __typeof(old)((new)) __attribute__((__weak__, __alias__(#old))) -static struct { +static struct libc { enum { LIBC_ENVP_TOUCHED = 1 << 0, } flags; |
