2
2
* The .h version of this file is generated from the .h.in.
3
3
* See update_alltypes.sh.
4
4
*/
5
+ // XXX Emscripten keep in sync with musl/arch/i386/bits/alltypes.h.in
5
6
#define _Addr __PTRDIFF_TYPE__
6
7
#define _Int64 __INT64_TYPE__
7
8
#define _Reg __PTRDIFF_TYPE__
13
14
#define LONG_MAX 0x7fffffffL
14
15
#endif
15
16
16
- #if defined(__NEED_va_list ) && !defined(__DEFINED_va_list )
17
- typedef __builtin_va_list va_list ;
18
- #define __DEFINED_va_list
19
- #endif
20
-
21
- #if defined(__NEED___isoc_va_list ) && !defined(__DEFINED___isoc_va_list )
22
- typedef __builtin_va_list __isoc_va_list ;
23
- #define __DEFINED___isoc_va_list
24
- #endif
25
-
26
-
27
17
#ifndef __cplusplus
28
18
#ifdef __WCHAR_TYPE__
29
19
#if defined(__NEED_wchar_t ) && !defined(__DEFINED_wchar_t )
@@ -89,6 +79,7 @@ typedef struct { alignas(8) long long __ll; long double __ld; } max_align_t;
89
79
90
80
#endif
91
81
82
+ // XXX Emscripten use 32-bit time (reverts musl commit d6dcfe4d0c58856690ecbad4cf191d7c9ee1a4a8)
92
83
#if defined(__NEED_time_t ) && !defined(__DEFINED_time_t )
93
84
typedef long time_t ;
94
85
#define __DEFINED_time_t
@@ -100,6 +91,7 @@ typedef long suseconds_t;
100
91
#endif
101
92
102
93
94
+ // XXX Emscripten avoid endian-specific padding (reverts musl commit 9b2921bea1d5017832e1b45d1fd64220047a9802)
103
95
#if defined(__NEED_struct_timespec ) && !defined(__DEFINED_struct_timespec )
104
96
struct timespec { time_t tv_sec ; long tv_nsec ; };
105
97
#define __DEFINED_struct_timespec
@@ -113,36 +105,6 @@ typedef struct { union { int __i[10]; volatile int __vi[10]; unsigned __s[10]; }
113
105
#define __DEFINED_pthread_attr_t
114
106
#endif
115
107
116
- #if defined(__NEED_pthread_mutex_t ) && !defined(__DEFINED_pthread_mutex_t )
117
- typedef struct { union { int __i [6 ]; volatile int __vi [6 ]; volatile void * volatile __p [6 ]; } __u ; } pthread_mutex_t ;
118
- #define __DEFINED_pthread_mutex_t
119
- #endif
120
-
121
- #if defined(__NEED_mtx_t ) && !defined(__DEFINED_mtx_t )
122
- typedef struct { union { int __i [6 ]; volatile int __vi [6 ]; volatile void * volatile __p [6 ]; } __u ; } mtx_t ;
123
- #define __DEFINED_mtx_t
124
- #endif
125
-
126
- #if defined(__NEED_pthread_cond_t ) && !defined(__DEFINED_pthread_cond_t )
127
- typedef struct { union { int __i [12 ]; volatile int __vi [12 ]; void * __p [12 ]; } __u ; } pthread_cond_t ;
128
- #define __DEFINED_pthread_cond_t
129
- #endif
130
-
131
- #if defined(__NEED_cnd_t ) && !defined(__DEFINED_cnd_t )
132
- typedef struct { union { int __i [12 ]; volatile int __vi [12 ]; void * __p [12 ]; } __u ; } cnd_t ;
133
- #define __DEFINED_cnd_t
134
- #endif
135
-
136
- #if defined(__NEED_pthread_rwlock_t ) && !defined(__DEFINED_pthread_rwlock_t )
137
- typedef struct { union { int __i [8 ]; volatile int __vi [8 ]; void * __p [8 ]; } __u ; } pthread_rwlock_t ;
138
- #define __DEFINED_pthread_rwlock_t
139
- #endif
140
-
141
- #if defined(__NEED_pthread_barrier_t ) && !defined(__DEFINED_pthread_barrier_t )
142
- typedef struct { union { int __i [5 ]; volatile int __vi [5 ]; void * __p [5 ]; } __u ; } pthread_barrier_t ;
143
- #define __DEFINED_pthread_barrier_t
144
- #endif
145
-
146
108
#define __LITTLE_ENDIAN 1234
147
109
#define __BIG_ENDIAN 4321
148
110
#define __USE_TIME_BITS64 1
0 commit comments