File tree Expand file tree Collapse file tree 2 files changed +22
-16
lines changed Expand file tree Collapse file tree 2 files changed +22
-16
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,19 @@ module _complex [system] [no_undeclared_includes] {
24
24
export *
25
25
}
26
26
27
+ module _fenv [system] [no_undeclared_includes] {
28
+ use corecrt
29
+ use _float
30
+ header "fenv.h"
31
+ export *
32
+ }
33
+
34
+ module _float [system] [no_undeclared_includes] {
35
+ use corecrt
36
+ header "float.h"
37
+ export *
38
+ }
39
+
27
40
module _stddef [system] [no_undeclared_includes] {
28
41
header "stddef.h"
29
42
export *
@@ -40,6 +53,8 @@ module ucrt [system] {
40
53
41
54
module C {
42
55
export _complex
56
+ export _fenv
57
+ export _float
43
58
export _stddef
44
59
export _stdlib
45
60
@@ -53,16 +68,6 @@ module ucrt [system] {
53
68
export *
54
69
}
55
70
56
- module fenv {
57
- header "fenv.h"
58
- export *
59
- }
60
-
61
- module float {
62
- header "float.h"
63
- export *
64
- }
65
-
66
71
module inttypes {
67
72
header "inttypes.h"
68
73
export *
@@ -86,13 +91,11 @@ module ucrt [system] {
86
91
module stdio {
87
92
header "stdio.h"
88
93
export *
94
+ }
89
95
90
- // NOTE(compnerd) this is a horrible workaround for the fact that
91
- // Microsoft has fully inlined nearly all of the printf family of
92
- // functions in the headers which results in the definitions being elided
93
- // resulting in undefined symbols. The legacy_stdio_definitions provides
94
- // out-of-line definitions for these functions.
95
- link "legacy_stdio_definitions"
96
+ module stdlib {
97
+ header "stdlib.h"
98
+ export *
96
99
}
97
100
98
101
module string {
Original file line number Diff line number Diff line change 13
13
@_exported import ucrt // Clang module
14
14
// Extra clang module that's split out from ucrt:
15
15
@_exported import _complex
16
+ @_exported import _fenv
17
+ @_exported import _float
18
+ @_exported import _malloc
16
19
@_exported import _stddef
17
20
@_exported import _stdlib
18
21
You can’t perform that action at this time.
0 commit comments