From 6bad5a7bb3327cd65f3b7cb133af7de8cc51b1f7 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 16 Apr 2020 18:54:12 -0700 Subject: [PATCH] Windows: add a WinGDI submodule Extract the WinGDI into a submodule to handle the Gdi32 autolinking requirement as well as to isolate the types. --- stdlib/public/Platform/winsdk.modulemap | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stdlib/public/Platform/winsdk.modulemap b/stdlib/public/Platform/winsdk.modulemap index 05c8cdcf4e006..cc638f93a819b 100644 --- a/stdlib/public/Platform/winsdk.modulemap +++ b/stdlib/public/Platform/winsdk.modulemap @@ -203,6 +203,13 @@ module WinSDK [system] { link "DnsAPI.Lib" } + module WinGDI { + header "wingdi.h" + export * + + link "Gdi32.Lib" + } + module WinReg { header "winreg.h" export *