Skip to content

Commit 72dad03

Browse files
committed
Simplify ucrt.modulemap
1 parent 6f9876a commit 72dad03

File tree

1 file changed

+12
-43
lines changed

1 file changed

+12
-43
lines changed

stdlib/public/Platform/ucrt.modulemap

Lines changed: 12 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -12,54 +12,17 @@
1212

1313
// The following modules have to be standalone top-level modules to deal with
1414
// 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-
2115
module _complex [system] [no_undeclared_includes] {
2216
use corecrt
2317
use std
2418
header "complex.h"
2519
export *
2620
}
2721

28-
module _stddef [system] [no_undeclared_includes] {
29-
use corecrt
30-
textual header "stddef.h"
31-
}
32-
33-
module _stdlib [system] [no_undeclared_includes] {
34-
use corecrt
35-
use vcruntime
36-
header "stdlib.h"
37-
export *
38-
}
39-
40-
module _ctype [system] [no_undeclared_includes] {
41-
use corecrt
42-
textual header "ctype.h"
43-
}
44-
45-
module _errno [system] [no_undeclared_includes] {
46-
use corecrt
47-
textual header "errno.h"
48-
}
49-
50-
module _stdnoreturn [system] [no_undeclared_includes] {
51-
use corecrt
52-
textual header "stdnoreturn.h"
53-
}
54-
55-
5622
module ucrt [system] {
57-
export _malloc
5823

5924
module C {
6025
export _complex
61-
export _stdlib
62-
6326

6427
module ctype {
6528
header "ctype.h"
@@ -91,6 +54,11 @@ module ucrt [system] {
9154
export *
9255
}
9356

57+
module malloc {
58+
header "malloc.h"
59+
export *
60+
}
61+
9462
module math {
9563
header "math.h"
9664
export *
@@ -106,6 +74,11 @@ module ucrt [system] {
10674
export *
10775
}
10876

77+
module stddef {
78+
textual header "stddef.h"
79+
export *
80+
}
81+
10982
module stdio {
11083
header "stdio.h"
11184
export *
@@ -202,11 +175,6 @@ module ucrt [system] {
202175
}
203176
}
204177

205-
module _corecrt_memcpy_s [system] [no_undeclared_includes] {
206-
textual header "corecrt_memcpy_s.h"
207-
export *
208-
}
209-
210178
module corecrt [system] {
211179
use vcruntime
212180

@@ -246,7 +214,8 @@ module corecrt [system] {
246214
}
247215

248216
module memcpy {
249-
textual header "corecrt_memcpy_s.h"
217+
header "corecrt_memcpy_s.h"
218+
export *
250219
}
251220

252221
module process {

0 commit comments

Comments
 (0)