Browse Source

Try to fix linkage on windows

Alex Crichton 7 năm trước cách đây
mục cha
commit
a4120adc69
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      examples/intrinsics.rs

+ 4 - 0
examples/intrinsics.rs

@@ -416,6 +416,10 @@ pub fn _start() -> ! {
     loop {}
 }
 
+#[cfg(windows)]
+#[link(name = "kernel32")]
+extern {}
+
 // ARM targets need these symbols
 #[no_mangle]
 pub fn __aeabi_unwind_cpp_pr0() {}