Skip to content

Commit 4bb13ba

Browse files
committed
Deduplicate arch/emscripten/bits/alltypes.h{,in} with include/libc/alltypes.h.in
1 parent 4ba2500 commit 4bb13ba

File tree

2 files changed

+0
-50
lines changed

2 files changed

+0
-50
lines changed

system/lib/libc/musl/arch/emscripten/bits/alltypes.h

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,6 @@
99
#define __BYTE_ORDER 1234
1010
#define __LONG_MAX __LONG_MAX__
1111

12-
#if defined(__NEED_va_list) && !defined(__DEFINED_va_list)
13-
typedef __builtin_va_list va_list;
14-
#define __DEFINED_va_list
15-
#endif
16-
17-
#if defined(__NEED___isoc_va_list) && !defined(__DEFINED___isoc_va_list)
18-
typedef __builtin_va_list __isoc_va_list;
19-
#define __DEFINED___isoc_va_list
20-
#endif
21-
22-
2312
#ifndef __cplusplus
2413
#ifdef __WCHAR_TYPE__
2514
#if defined(__NEED_wchar_t) && !defined(__DEFINED_wchar_t)
@@ -134,36 +123,6 @@ typedef struct { union { int __i[10]; volatile int __vi[10]; unsigned long __s[1
134123
#define __DEFINED_pthread_attr_t
135124
#endif
136125

137-
#if defined(__NEED_pthread_mutex_t) && !defined(__DEFINED_pthread_mutex_t)
138-
typedef struct { union { int __i[6]; volatile int __vi[6]; volatile void *volatile __p[6]; } __u; } pthread_mutex_t;
139-
#define __DEFINED_pthread_mutex_t
140-
#endif
141-
142-
#if defined(__NEED_mtx_t) && !defined(__DEFINED_mtx_t)
143-
typedef struct { union { int __i[6]; volatile int __vi[6]; volatile void *volatile __p[6]; } __u; } mtx_t;
144-
#define __DEFINED_mtx_t
145-
#endif
146-
147-
#if defined(__NEED_pthread_cond_t) && !defined(__DEFINED_pthread_cond_t)
148-
typedef struct { union { int __i[12]; volatile int __vi[12]; void *__p[12]; } __u; } pthread_cond_t;
149-
#define __DEFINED_pthread_cond_t
150-
#endif
151-
152-
#if defined(__NEED_cnd_t) && !defined(__DEFINED_cnd_t)
153-
typedef struct { union { int __i[12]; volatile int __vi[12]; void *__p[12]; } __u; } cnd_t;
154-
#define __DEFINED_cnd_t
155-
#endif
156-
157-
#if defined(__NEED_pthread_rwlock_t) && !defined(__DEFINED_pthread_rwlock_t)
158-
typedef struct { union { int __i[8]; volatile int __vi[8]; void *__p[8]; } __u; } pthread_rwlock_t;
159-
#define __DEFINED_pthread_rwlock_t
160-
#endif
161-
162-
#if defined(__NEED_pthread_barrier_t) && !defined(__DEFINED_pthread_barrier_t)
163-
typedef struct { union { int __i[5]; volatile int __vi[5]; void *__p[5]; } __u; } pthread_barrier_t;
164-
#define __DEFINED_pthread_barrier_t
165-
#endif
166-
167126
#define __LITTLE_ENDIAN 1234
168127
#define __BIG_ENDIAN 4321
169128
#define __USE_TIME_BITS64 1

system/lib/libc/musl/arch/emscripten/bits/alltypes.h.in

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
#define __BYTE_ORDER 1234
1010
#define __LONG_MAX __LONG_MAX__
1111

12-
TYPEDEF __builtin_va_list va_list;
13-
TYPEDEF __builtin_va_list __isoc_va_list;
14-
1512
#ifndef __cplusplus
1613
#ifdef __WCHAR_TYPE__
1714
TYPEDEF __WCHAR_TYPE__ wchar_t;
@@ -50,9 +47,3 @@ TYPEDEF struct { alignas(8) long long __ll; long double __ld; } max_align_t;
5047
// For canvas transfer implementation in Emscripten, use an extra control field
5148
// to pass a pointer to a string denoting the WebGL canvases to transfer.
5249
TYPEDEF struct { union { int __i[10]; volatile int __vi[10]; unsigned long __s[10]; } __u; const char *_a_transferredcanvases; } pthread_attr_t;
53-
TYPEDEF struct { union { int __i[6]; volatile int __vi[6]; volatile void *volatile __p[6]; } __u; } pthread_mutex_t;
54-
TYPEDEF struct { union { int __i[6]; volatile int __vi[6]; volatile void *volatile __p[6]; } __u; } mtx_t;
55-
TYPEDEF struct { union { int __i[12]; volatile int __vi[12]; void *__p[12]; } __u; } pthread_cond_t;
56-
TYPEDEF struct { union { int __i[12]; volatile int __vi[12]; void *__p[12]; } __u; } cnd_t;
57-
TYPEDEF struct { union { int __i[8]; volatile int __vi[8]; void *__p[8]; } __u; } pthread_rwlock_t;
58-
TYPEDEF struct { union { int __i[5]; volatile int __vi[5]; void *__p[5]; } __u; } pthread_barrier_t;

0 commit comments

Comments
 (0)