mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
Correct foreign import library usage
This commit is contained in:
@@ -38,11 +38,11 @@ when ODIN_ARCH == "wasm32" || ODIN_ARCH == "wasm64" || (ODIN_NO_CRT && ODIN_OS !
|
|||||||
|
|
||||||
}
|
}
|
||||||
} else when ODIN_NO_CRT && ODIN_OS == "windows" {
|
} else when ODIN_NO_CRT && ODIN_OS == "windows" {
|
||||||
foreign import Kernel32 "system:Kernel32.lib"
|
foreign import lib "system:NtDll.lib"
|
||||||
|
|
||||||
@(private="file")
|
@(private="file")
|
||||||
@(default_calling_convention="std")
|
@(default_calling_convention="std")
|
||||||
foreign Kernel32 {
|
foreign lib {
|
||||||
RtlMoveMemory :: proc(dst, src: rawptr, length: int) ---
|
RtlMoveMemory :: proc(dst, src: rawptr, length: int) ---
|
||||||
RtlFillMemory :: proc(dst: rawptr, length: int, fill: i32) ---
|
RtlFillMemory :: proc(dst: rawptr, length: int, fill: i32) ---
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user