summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkkard2 <[email protected]>2025-09-08 20:04:11 +0200
committerkkard2 <[email protected]>2025-09-08 20:04:11 +0200
commit8d463f89f1918b820ae3b0c2455ad9f27b6a8b27 (patch)
tree6fc6778e0cda1bcd21806498da622dddfc0f7f0f
parent704445e1c469d7856f0e19d30d68cb1b5cecfb83 (diff)
fix errors (?)
-rw-r--r--platform_win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform_win32.c b/platform_win32.c
index 8374128..e3563b5 100644
--- a/platform_win32.c
+++ b/platform_win32.c
@@ -62,7 +62,7 @@ void redirect_io_to_console() {
setvbuf(stdin, NULL, _IONBF, 0);
}
-LRESULT WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
+LRESULT __stdcall WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
switch (uMsg) {
case WM_DESTROY: {
PostQuitMessage(0);
@@ -79,7 +79,7 @@ LRESULT WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
}
}
-int WinMain(
+int __stdcall WinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,