mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 16:22:29 +00:00
Resurrect <windows.h> as <windowsesque.h>
This commit is contained in:
parent
68b9479f0c
commit
3eb405e0e2
6 changed files with 4340 additions and 0 deletions
20
libc/nt/kernel32/LoadLibraryA.S
Normal file
20
libc/nt/kernel32/LoadLibraryA.S
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp kernel32,__imp_LoadLibraryA,LoadLibraryA
|
||||
|
||||
.text.windows
|
||||
.ftrace1
|
||||
LoadLibraryA:
|
||||
.ftrace2
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
mov %rdi,%rcx
|
||||
sub $32,%rsp
|
||||
call *__imp_LoadLibraryA(%rip)
|
||||
leave
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
#endif
|
||||
ret
|
||||
.endfn LoadLibraryA,globl
|
||||
.previous
|
Loading…
Add table
Add a link
Reference in a new issue