Resurrect <windows.h> as <windowsesque.h>

This commit is contained in:
Justine Tunney 2024-02-21 16:40:32 -08:00
parent 68b9479f0c
commit 3eb405e0e2
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
6 changed files with 4340 additions and 0 deletions

View 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