Skip to content

Commit 70a6d2c

Browse files
committed
WinSDK: extract version into a separate submodule
Currently winver.h gets included into `WinSDK.WinSock2`, however its usages might not be related to sockets, and it requires linking against `Version.Lib`
1 parent 3c386d8 commit 70a6d2c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

stdlib/public/Platform/winsdk.modulemap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,14 @@ module WinSDK [system] {
127127
header "timezoneapi.h"
128128
export *
129129
}
130+
131+
// api-ms-win-core-version-l1-1-0.dll
132+
module version {
133+
header "winver.h"
134+
export *
135+
136+
link "Version.Lib"
137+
}
130138
}
131139

132140
module AuthZ {

0 commit comments

Comments
 (0)