Alexandre Julliard : user32: Add a dummy _wassert implementation to avoid a Mingw build issue.

Alexandre Julliard julliard at winehq.org
Wed Mar 27 17:27:37 CDT 2019


Module: wine
Branch: master
Commit: 5aa83bee08e4049a5738c47c83b14dd7fa8a0e73
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5aa83bee08e4049a5738c47c83b14dd7fa8a0e73

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Mar 27 16:50:21 2019 +0100

user32: Add a dummy _wassert implementation to avoid a Mingw build issue.

_wassert references __imp__MessageBoxW at 16 which causes a duplicate
definition of MessageBoxW.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/user_main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/user32/user_main.c b/dlls/user32/user_main.c
index 007cb68..8300975 100644
--- a/dlls/user32/user_main.c
+++ b/dlls/user32/user_main.c
@@ -55,6 +55,10 @@ static DWORD exiting_thread_id;
 
 extern void WDML_NotifyThreadDetach(void);
 
+#ifdef __MINGW32__
+/* work around a Mingw build issue where _wassert causes a duplicate reference to MessageBoxW */
+void __cdecl _wassert( const WCHAR *msg, const WCHAR *file, unsigned line) { abort(); }
+#endif
 
 /***********************************************************************
  *           USER_Lock




More information about the wine-cvs mailing list