mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Add several NT functions (#1318)
With these addtions, I could build and run a [sokol](https://github.com/floooh/sokol) application (using OpenGL) on both Linux and Windows.
This commit is contained in:
parent
4e44517c9c
commit
baad1df71d
33 changed files with 618 additions and 0 deletions
18
libc/nt/shell32/DragQueryFileW.S
Normal file
18
libc/nt/shell32/DragQueryFileW.S
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp shell32,__imp_DragQueryFileW,DragQueryFileW
|
||||
|
||||
.text.windows
|
||||
.ftrace1
|
||||
DragQueryFile:
|
||||
.ftrace2
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
mov __imp_DragQueryFileW(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn DragQueryFile,globl
|
||||
.previous
|
Loading…
Add table
Add a link
Reference in a new issue