From 6ec5abf032170a64a18131f7923cf30f7644bbfe Mon Sep 17 00:00:00 2001 From: Oliver Mannion <125105+tekumara@users.noreply.github.com> Date: Mon, 5 Feb 2024 22:41:55 +1100 Subject: [PATCH] fix: error LNK2019: unresolved external symbol _GetLogicalDrives resolves #33 --- crates/typos-lsp/src/windows.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typos-lsp/src/windows.rs b/crates/typos-lsp/src/windows.rs index bae7548..a650680 100644 --- a/crates/typos-lsp/src/windows.rs +++ b/crates/typos-lsp/src/windows.rs @@ -1,5 +1,5 @@ #[cfg(windows)] -extern "C" { +extern "system" { // https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getlogicaldrives pub fn GetLogicalDrives() -> u32; }