diff --git a/dub.sdl b/dub.sdl index d4be719..b618825 100644 --- a/dub.sdl +++ b/dub.sdl @@ -7,6 +7,7 @@ targetPath "bin" +dflags "-preview=in" // Deprecated module(s) excludedSourceFiles "source/dub/packagesupplier.d" diff --git a/source/dub/internal/vibecompat/core/file.d b/source/dub/internal/vibecompat/core/file.d index 64faf3b..e3fc1c1 100644 --- a/source/dub/internal/vibecompat/core/file.d +++ b/source/dub/internal/vibecompat/core/file.d @@ -101,7 +101,7 @@ copyFile(NativePath(from), NativePath(to)); } -version (Windows) extern(Windows) int CreateHardLinkW(in wchar* to, in wchar* from, void* attr=null); +version (Windows) extern(Windows) int CreateHardLinkW(const(wchar)* to, const(wchar)* from, void* attr=null); // guess whether 2 files are identical, ignores filename and content private bool sameFile(NativePath a, NativePath b)