소스 검색

Try to fix linkage on windows

Alex Crichton 8 년 전
부모
커밋
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() {}