mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 15:03:34 +00:00
With these addtions, I could build and run a [sokol](https://github.com/floooh/sokol) application (using OpenGL) on both Linux and Windows.
18 lines
285 B
ArmAsm
18 lines
285 B
ArmAsm
#include "libc/nt/codegen.h"
|
|
.imp user32,__imp_PtInRect,PtInRect
|
|
|
|
.text.windows
|
|
.ftrace1
|
|
PtInRect:
|
|
.ftrace2
|
|
#ifdef __x86_64__
|
|
push %rbp
|
|
mov %rsp,%rbp
|
|
mov __imp_PtInRect(%rip),%rax
|
|
jmp __sysv2nt
|
|
#elif defined(__aarch64__)
|
|
mov x0,#0
|
|
ret
|
|
#endif
|
|
.endfn PtInRect,globl
|
|
.previous
|