mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-05 02:38:31 +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
20
libc/nt/user32/ClipCursor.S
Normal file
20
libc/nt/user32/ClipCursor.S
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp user32,__imp_ClipCursor,ClipCursor
|
||||
|
||||
.text.windows
|
||||
.ftrace1
|
||||
ClipCursor:
|
||||
.ftrace2
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
mov %rdi,%rcx
|
||||
sub $32,%rsp
|
||||
call *__imp_ClipCursor(%rip)
|
||||
leave
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
#endif
|
||||
ret
|
||||
.endfn ClipCursor,globl
|
||||
.previous
|
Loading…
Add table
Add a link
Reference in a new issue