File tree 1 file changed +3
-0
lines changed
library/std/src/sys/windows
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -688,6 +688,7 @@ if #[cfg(not(target_vendor = "uwp"))] {
688
688
689
689
pub const TOKEN_READ : DWORD = 0x20008 ;
690
690
691
+ #[ link( name="kernel32" ) ]
691
692
extern "system" {
692
693
#[ link_name = "SystemFunction036" ]
693
694
pub fn RtlGenRandom ( RandomBuffer : * mut u8 , RandomBufferLength : ULONG ) -> BOOLEAN ;
@@ -744,6 +745,7 @@ if #[cfg(target_vendor = "uwp")] {
744
745
pub Directory : BOOLEAN ,
745
746
}
746
747
748
+ #[ link( name="kernel32" ) ]
747
749
extern "system" {
748
750
pub fn GetFileInformationByHandleEx ( hFile: HANDLE ,
749
751
fileInfoClass: FILE_INFO_BY_HANDLE_CLASS ,
@@ -756,6 +758,7 @@ if #[cfg(target_vendor = "uwp")] {
756
758
}
757
759
758
760
// Shared between Desktop & UWP
761
+ #[ link( name = "kernel32" ) ]
759
762
extern "system" {
760
763
pub fn WSAStartup ( wVersionRequested : WORD , lpWSAData : LPWSADATA ) -> c_int ;
761
764
pub fn WSACleanup ( ) -> c_int ;
You can’t perform that action at this time.
0 commit comments