summaryrefslogtreecommitdiff
path: root/lib/libc/include/libc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/include/libc.h')
-rw-r--r--lib/libc/include/libc.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/include/libc.h b/lib/libc/include/libc.h
index 3f5f2644..d59c2b3c 100644
--- a/lib/libc/include/libc.h
+++ b/lib/libc/include/libc.h
@@ -1,14 +1,13 @@
#ifndef __LIBC_LIBC_H
#define __LIBC_LIBC_H
-#include <__locale.h>
#include <stdatomic.h>
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
-#define unused __attribute__((unused))
+#define __unused __attribute__((unused))
#define aligned(type) __attribute__((aligned(__alignof__(type))))
-#define weak __attribute__((__weak__))
+#define __weak __attribute__((__weak__))
#define weak_reference(old, new) \
extern __typeof(old) new __attribute__((__weak__, __alias__(#old)))
@@ -21,7 +20,6 @@ static struct {
volatile atomic_flag malloc;
volatile atomic_flag environ;
} lock;
- struct __locale_t locale;
} libc = { .lock = { ATOMIC_FLAG_INIT, ATOMIC_FLAG_INIT, ATOMIC_FLAG_INIT } };
#endif