浏览代码

Try to fix linkage on windows

Alex Crichton 7 年之前
父节点
当前提交
a4120adc69
共有 1 个文件被更改,包括 4 次插入0 次删除
  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() {}