Kaynağa Gözat

Try to fix linkage on windows

Alex Crichton 7 yıl önce
ebeveyn
işleme
a4120adc69
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  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() {}