summaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
authorglx22 <glx@openttd.org>2021-05-13 23:48:28 +0200
committerLoïc Guilloux <glx22@users.noreply.github.com>2021-06-10 23:17:29 +0200
commitb7250a42e1e069b77bf52e76da20e7efea441b05 (patch)
treed2c356e66e0cede63c5a1c1289861f9dc2ebd966 /src/os
parent2df48a78ccf617da3c1b4304353a59adbe51b431 (diff)
downloadopenttd-b7250a42e1e069b77bf52e76da20e7efea441b05.tar.xz
Fix: [MinGW32] Linking error
Diffstat (limited to 'src/os')
-rw-r--r--src/os/windows/crashlog_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/windows/crashlog_win.cpp b/src/os/windows/crashlog_win.cpp
index 0e1d2f8cc..1d3ed5193 100644
--- a/src/os/windows/crashlog_win.cpp
+++ b/src/os/windows/crashlog_win.cpp
@@ -633,7 +633,7 @@ static void CDECL CustomAbort(int signal)
mov safe_esp, esp
}
# else
- asm("movl %esp, _safe_esp");
+ asm("movl %%esp, %0" : "=rm" (safe_esp));
# endif
_safe_esp = safe_esp;
#endif