Skip to content

Commit

Permalink
Fixed ole32.dll pragrma for cross-compilation (#650)
Browse files Browse the repository at this point in the history
* Fixed ole32.dll pragrma for cross-compilation

Pragma specified Ole32.dll, which broke compilation on case-sensitive file
systems, ie. when cross-compiling with ldc on Linux.

* Replaced pragma with dub directive

Deleted pragma(lib) and moved ole32 to libs-windows in dub.json
  • Loading branch information
drahosj authored Jan 27, 2023
1 parent 9e288ff commit 51d1eab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

"libs-linux": ["z"],

"libs-windows": ["ole32"],

"stringImportPaths": [
"views"
],
Expand Down
2 changes: 0 additions & 2 deletions src/dlangui/core/files.d
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 51d1eab

Please sign in to comment.