aboutsummaryrefslogtreecommitdiff
path: root/core/sys/windows/user32.odin
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-01-17 17:04:54 +0000
committergingerBill <bill@gingerbill.org>2024-01-17 17:04:54 +0000
commit75c659fa418b963f66c2e863992d1e7bb257d654 (patch)
tree5322584d7fd33bfc2c3356178e5550fbca8fbe5e /core/sys/windows/user32.odin
parent8cfff254c9eb2677e03182d1e224d05be26f49ea (diff)
Change `stdcall` -> `system`
Diffstat (limited to 'core/sys/windows/user32.odin')
-rw-r--r--core/sys/windows/user32.odin10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/sys/windows/user32.odin b/core/sys/windows/user32.odin
index 81884f3da..0c92adca4 100644
--- a/core/sys/windows/user32.odin
+++ b/core/sys/windows/user32.odin
@@ -3,7 +3,7 @@ package sys_windows
foreign import user32 "system:User32.lib"
-@(default_calling_convention="stdcall")
+@(default_calling_convention="system")
foreign user32 {
GetClassInfoW :: proc(hInstance: HINSTANCE, lpClassNAme: LPCWSTR, lpWndClass: ^WNDCLASSW) -> BOOL ---
GetClassInfoExW :: proc(hInsatnce: HINSTANCE, lpszClass: LPCWSTR, lpwcx: ^WNDCLASSEXW) -> BOOL ---
@@ -236,7 +236,7 @@ foreign user32 {
EnableMenuItem :: proc(hMenu: HMENU, uIDEnableItem: UINT, uEnable: UINT) -> BOOL ---
}
-CreateWindowW :: #force_inline proc "stdcall" (
+CreateWindowW :: #force_inline proc "system" (
lpClassName: LPCTSTR,
lpWindowName: LPCTSTR,
dwStyle: DWORD,
@@ -266,7 +266,7 @@ CreateWindowW :: #force_inline proc "stdcall" (
}
when ODIN_ARCH == .amd64 {
- @(default_calling_convention="stdcall")
+ @(default_calling_convention="system")
foreign user32 {
GetClassLongPtrW :: proc(hWnd: HWND, nIndex: c_int) -> ULONG_PTR ---
SetClassLongPtrW :: proc(hWnd: HWND, nIndex: c_int, dwNewLong: LONG_PTR) -> ULONG_PTR ---
@@ -312,8 +312,8 @@ Monitor_From_Flags :: enum DWORD {
MONITOR_DEFAULTTONEAREST = 0x00000002, // Returns a handle to the display monitor that is nearest to the window
}
-Monitor_Enum_Proc :: #type proc "stdcall" (HMONITOR, HDC, LPRECT, LPARAM) -> BOOL
-Window_Enum_Proc :: #type proc "stdcall" (HWND, LPARAM) -> BOOL
+Monitor_Enum_Proc :: #type proc "system" (HMONITOR, HDC, LPRECT, LPARAM) -> BOOL
+Window_Enum_Proc :: #type proc "system" (HWND, LPARAM) -> BOOL
USER_DEFAULT_SCREEN_DPI :: 96
DPI_AWARENESS_CONTEXT :: distinct HANDLE