Skip to content

Commit 4e78d9e

Browse files
committed
don't default-link to ntdll
1 parent fec3dc5 commit 4e78d9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • library/windows_link/src

library/windows_link/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub macro link($($tt:tt)*) {
4545
#[cfg(not(feature = "windows_raw_dylib"))]
4646
#[cfg(not(target_os = "cygwin"))] // Cygwin doesn't need these libs
4747
#[cfg_attr(target_vendor = "win7", link(name = "advapi32"))]
48-
#[link(name = "ntdll")]
48+
#[cfg_attr(not(target_family = "rust9x"), link(name = "ntdll"))]
4949
#[cfg_attr(not(target_family = "rust9x"), link(name = "userenv"))]
5050
#[link(name = "ws2_32")]
5151
#[link(name = "dbghelp")] // required for backtrace-rs symbolization

0 commit comments

Comments
 (0)