Skip to content

Commit dd01425

Browse files
committed
Don't link against advapi32, except on win7.
1 parent 9769e9f commit dd01425

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: windows_targets/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub macro link {
3434
}
3535

3636
#[cfg(not(feature = "windows_raw_dylib"))]
37-
#[link(name = "advapi32")]
37+
#[cfg_attr(target_vendor = "win7", link(name = "advapi32"))]
3838
#[link(name = "ntdll")]
3939
#[link(name = "userenv")]
4040
#[link(name = "ws2_32")]

0 commit comments

Comments
 (0)