Explorar o código

Try to fix linkage on windows

Alex Crichton %!s(int64=8) %!d(string=hai) anos
pai
achega
a4120adc69
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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() {}