Skip to content

Commit 760a4e4

Browse files
committed
Platform: add SensorsAPI to the WinSDK modulemap
The SensorsAPI headers are not part of the Windows umbrella header and do not get pulled into the module through some transitive set. Explicitly list the SensorsAPIs contract into the WinSDK modulemap to allow use of the api contract from Swift.
1 parent 6f73933 commit 760a4e4

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
@@ -335,6 +335,14 @@ module WinSDK [system] {
335335
export *
336336
}
337337

338+
module Sensors {
339+
header "sensors.h"
340+
header "SensorsApi.h"
341+
export *
342+
343+
link "sensorsapi.lib"
344+
}
345+
338346
module User {
339347
header "WinUser.h"
340348
export *

0 commit comments

Comments
 (0)