소스 검색

Correct foreign import library usage

gingerBill 3 년 전
부모
커밋
ae25eaf10c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      core/runtime/procs.odin

+ 2 - 2
core/runtime/procs.odin

@@ -38,11 +38,11 @@ when ODIN_ARCH == "wasm32" || ODIN_ARCH == "wasm64" || (ODIN_NO_CRT && ODIN_OS !
 		
 	}
 } else when ODIN_NO_CRT && ODIN_OS == "windows" {
-	foreign import Kernel32 "system:Kernel32.lib"
+	foreign import lib "system:NtDll.lib"
 	
 	@(private="file")
 	@(default_calling_convention="std")
-	foreign Kernel32 {
+	foreign lib {
 		RtlMoveMemory :: proc(dst, src: rawptr, length: int) ---
 		RtlFillMemory :: proc(dst: rawptr, length: int, fill: i32) ---
 	}