File tree Expand file tree Collapse file tree 1 file changed +43
-28
lines changed Expand file tree Collapse file tree 1 file changed +43
-28
lines changed Original file line number Diff line number Diff line change 10
10
//
11
11
//===----------------------------------------------------------------------===//
12
12
13
- module _complex [system] {
13
+ // The following modules have to be standalone top-level modules to deal with
14
+ // version 10.0.26100 of the Windows SDK.
15
+ module _malloc [system] [no_undeclared_includes] {
16
+ use corecrt
17
+ header "malloc.h"
18
+ export *
19
+ }
20
+
21
+ module _complex [system] [no_undeclared_includes] {
22
+ use corecrt
23
+ use std
14
24
header "complex.h"
15
25
export *
16
26
}
17
27
28
+ module _fenv [system] [no_undeclared_includes] {
29
+ use corecrt
30
+ use _float
31
+ header "fenv.h"
32
+ export *
33
+ }
34
+
35
+ module _float [system] [no_undeclared_includes] {
36
+ use corecrt
37
+ header "float.h"
38
+ export *
39
+ }
40
+
41
+ module _stddef [system] [no_undeclared_includes] {
42
+ header "stddef.h"
43
+ export *
44
+ }
45
+
46
+ module _stdlib [system] [no_undeclared_includes] {
47
+ use corecrt
48
+ header "stdlib.h"
49
+ export *
50
+ }
51
+
18
52
module ucrt [system] {
53
+ export _malloc
54
+
19
55
module C {
56
+ export _complex
57
+ export _fenv
58
+ export _float
59
+ export _stddef
60
+ export _stdlib
61
+
20
62
module ctype {
21
63
header "ctype.h"
22
64
export *
@@ -27,16 +69,6 @@ module ucrt [system] {
27
69
export *
28
70
}
29
71
30
- module fenv {
31
- header "fenv.h"
32
- export *
33
- }
34
-
35
- module float {
36
- header "float.h"
37
- export *
38
- }
39
-
40
72
module inttypes {
41
73
header "inttypes.h"
42
74
export *
@@ -57,21 +89,9 @@ module ucrt [system] {
57
89
export *
58
90
}
59
91
60
- module stddef {
61
- header "stddef.h"
62
- export *
63
- }
64
-
65
92
module stdio {
66
93
header "stdio.h"
67
94
export *
68
-
69
- // NOTE(compnerd) this is a horrible workaround for the fact that
70
- // Microsoft has fully inlined nearly all of the printf family of
71
- // functions in the headers which results in the definitions being elided
72
- // resulting in undefined symbols. The legacy_stdio_definitions provides
73
- // out-of-line definitions for these functions.
74
- link "legacy_stdio_definitions"
75
95
}
76
96
77
97
module stdlib {
@@ -132,11 +152,6 @@ module ucrt [system] {
132
152
export *
133
153
}
134
154
135
- module malloc {
136
- header "malloc.h"
137
- export *
138
- }
139
-
140
155
module minmax {
141
156
header "minmax.h"
142
157
export *
You can’t perform that action at this time.
0 commit comments