File tree Expand file tree Collapse file tree 4 files changed +10
-41
lines changed
musl/arch/emscripten/bits Expand file tree Collapse file tree 4 files changed +10
-41
lines changed Original file line number Diff line number Diff line change 9
9
#define __BYTE_ORDER 1234
10
10
#define __LONG_MAX __LONG_MAX__
11
11
12
- #ifndef __cplusplus
13
- #ifdef __WCHAR_TYPE__
14
12
#if defined(__NEED_wchar_t ) && !defined(__DEFINED_wchar_t )
15
13
typedef __WCHAR_TYPE__ wchar_t ;
16
14
#define __DEFINED_wchar_t
17
15
#endif
18
16
19
- #else
20
- #if defined(__NEED_wchar_t ) && !defined(__DEFINED_wchar_t )
21
- typedef long wchar_t ;
22
- #define __DEFINED_wchar_t
23
- #endif
24
-
25
- #endif
26
- #endif
27
17
#if defined(__NEED_wint_t ) && !defined(__DEFINED_wint_t )
28
18
typedef __WINT_TYPE__ wint_t ;
29
19
#define __DEFINED_wint_t
@@ -72,7 +62,6 @@ typedef unsigned int wctype_t;
72
62
#endif
73
63
74
64
75
- #if defined(__FLT_EVAL_METHOD__ ) && __FLT_EVAL_METHOD__ == 0
76
65
#if defined(__NEED_float_t ) && !defined(__DEFINED_float_t )
77
66
typedef float float_t ;
78
67
#define __DEFINED_float_t
@@ -83,18 +72,6 @@ typedef double double_t;
83
72
#define __DEFINED_double_t
84
73
#endif
85
74
86
- #else
87
- #if defined(__NEED_float_t ) && !defined(__DEFINED_float_t )
88
- typedef long double float_t ;
89
- #define __DEFINED_float_t
90
- #endif
91
-
92
- #if defined(__NEED_double_t ) && !defined(__DEFINED_double_t )
93
- typedef long double double_t ;
94
- #define __DEFINED_double_t
95
- #endif
96
-
97
- #endif
98
75
99
76
#ifndef __cplusplus
100
77
#if defined(__NEED_max_align_t ) && !defined(__DEFINED_max_align_t )
Original file line number Diff line number Diff line change 9
9
#define __BYTE_ORDER 1234
10
10
#define __LONG_MAX __LONG_MAX__
11
11
12
- #ifndef __cplusplus
13
- #ifdef __WCHAR_TYPE__
14
12
TYPEDEF __WCHAR_TYPE__ wchar_t ;
15
- #else
16
- TYPEDEF long wchar_t ;
17
- #endif
18
- #endif
19
13
TYPEDEF __WINT_TYPE__ wint_t ;
20
14
21
15
// XXX EMSCRIPTEN: ensure it's always 32-bits even in wasm64
@@ -28,13 +22,8 @@ TYPEDEF int suseconds_t;
28
22
TYPEDEF unsigned int fsfilcnt_t ;
29
23
TYPEDEF unsigned int wctype_t ;
30
24
31
- #if defined(__FLT_EVAL_METHOD__ ) && __FLT_EVAL_METHOD__ == 0
32
25
TYPEDEF float float_t ;
33
26
TYPEDEF double double_t ;
34
- #else
35
- TYPEDEF long double float_t ;
36
- TYPEDEF long double double_t ;
37
- #endif
38
27
39
28
#ifndef __cplusplus
40
29
TYPEDEF struct { _Alignas(8 ) long long __ll ; long double __ld ; } max_align_t ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ # This script updates alltypes.h based on the contents of alltypes.h.in.
3
+ # In upstream this must be done by the top level Makefile.
4
+
5
+ musl_srcdir=" $PWD /musl"
6
+ musl_includedir=" $musl_srcdir /include"
7
+ emscripten_dir=" $musl_srcdir /arch/emscripten/bits"
8
+ sed -f $musl_srcdir /tools/mkalltypes.sed \
9
+ $emscripten_dir /alltypes.h.in \
10
+ $musl_includedir /alltypes.h.in > $emscripten_dir /alltypes.h
You can’t perform that action at this time.
0 commit comments