diff --git a/dub.json b/dub.json index 40125eb5..31f66a2a 100644 --- a/dub.json +++ b/dub.json @@ -19,6 +19,8 @@ "libs-linux": ["z"], + "libs-windows": ["ole32"], + "stringImportPaths": [ "views" ], diff --git a/src/dlangui/core/files.d b/src/dlangui/core/files.d index c90e0ae2..069d4ff4 100644 --- a/src/dlangui/core/files.d +++ b/src/dlangui/core/files.d @@ -366,8 +366,6 @@ private: import core.sys.windows.objbase; import core.sys.windows.objidl; - pragma(lib, "Ole32"); - alias GUID KNOWNFOLDERID; extern(Windows) @nogc @system HRESULT _dummy_SHGetKnownFolderPath(const(KNOWNFOLDERID)* rfid, DWORD dwFlags, HANDLE hToken, wchar** ppszPath) nothrow;