mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-12 05:59:10 +00:00
Add WIN32 symbols for OpenGL support (#304)
This commit is contained in:
parent
30cd28b1f8
commit
0a0997a872
20 changed files with 290 additions and 92 deletions
|
@ -1,2 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp user32,__imp_AdjustWindowRect,AdjustWindowRect,1507
|
||||
|
||||
.text.windows
|
||||
AdjustWindowRect:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_AdjustWindowRect(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn AdjustWindowRect,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,15 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp user32,__imp_CreateIconIndirect,CreateIconIndirect,1618
|
||||
|
||||
.text.windows
|
||||
CreateIconIndirect:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov %rdi,%rcx
|
||||
sub $32,%rsp
|
||||
call *__imp_CreateIconIndirect(%rip)
|
||||
leave
|
||||
ret
|
||||
.endfn CreateIconIndirect,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,15 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp user32,__imp_DestroyIcon,DestroyIcon,1687
|
||||
|
||||
.text.windows
|
||||
DestroyIcon:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov %rdi,%rcx
|
||||
sub $32,%rsp
|
||||
call *__imp_DestroyIcon(%rip)
|
||||
leave
|
||||
ret
|
||||
.endfn DestroyIcon,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,15 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp user32,__imp_GetDC,GetDC,1830
|
||||
|
||||
.text.windows
|
||||
GetDC:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov %rdi,%rcx
|
||||
sub $32,%rsp
|
||||
call *__imp_GetDC(%rip)
|
||||
leave
|
||||
ret
|
||||
.endfn GetDC,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,15 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp user32,__imp_GetKeyboardLayout,GetKeyboardLayout,1867
|
||||
|
||||
.text.windows
|
||||
GetKeyboardLayout:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov %rdi,%rcx
|
||||
sub $32,%rsp
|
||||
call *__imp_GetKeyboardLayout(%rip)
|
||||
leave
|
||||
ret
|
||||
.endfn GetKeyboardLayout,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp user32,__imp_InvalidateRect,InvalidateRect,2048
|
||||
|
||||
.text.windows
|
||||
InvalidateRect:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_InvalidateRect(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn InvalidateRect,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp user32,__imp_MapVirtualKeyExW,MapVirtualKeyExW,2155
|
||||
|
||||
.text.windows
|
||||
MapVirtualKeyEx:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_MapVirtualKeyExW(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn MapVirtualKeyEx,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp user32,__imp_PeekMessageW,PeekMessageW,2201
|
||||
|
||||
.text.windows
|
||||
PeekMessage:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_PeekMessageW(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
.endfn PeekMessage,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp user32,__imp_ReleaseDC,ReleaseDC,2280
|
||||
|
||||
.text.windows
|
||||
ReleaseDC:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_ReleaseDC(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn ReleaseDC,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp user32,__imp_SetWindowLongW,SetWindowLongW,2398
|
||||
|
||||
.text.windows
|
||||
SetWindowLong:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_SetWindowLongW(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn SetWindowLong,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,15 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp user32,__imp_UpdateWindow,UpdateWindow,2474
|
||||
|
||||
.text.windows
|
||||
UpdateWindow:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov %rdi,%rcx
|
||||
sub $32,%rsp
|
||||
call *__imp_UpdateWindow(%rip)
|
||||
leave
|
||||
ret
|
||||
.endfn UpdateWindow,globl
|
||||
.previous
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue