[PATCH] user32: Remove no longer needed assert() workarounds for MinGW.

Zebediah Figura zfigura at codeweavers.com
Mon Jan 31 17:00:58 CST 2022


We build with msvcrt, so we don't link against MinGW's assert() anymore.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 dlls/user32/user_private.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/dlls/user32/user_private.h b/dlls/user32/user_private.h
index 3b542ea1452..d1016780658 100644
--- a/dlls/user32/user_private.h
+++ b/dlls/user32/user_private.h
@@ -296,12 +296,6 @@ typedef struct
 extern int bitmap_info_size( const BITMAPINFO * info, WORD coloruse ) DECLSPEC_HIDDEN;
 extern BOOL get_icon_size( HICON handle, SIZE *size ) DECLSPEC_HIDDEN;
 
-/* Mingw's assert() imports MessageBoxA and gets confused by user32 exporting it */
-#ifdef __MINGW32__
-#undef assert
-#define assert(expr) ((void)0)
-#endif
-
 extern struct user_api_hook *user_api DECLSPEC_HIDDEN;
 LRESULT WINAPI USER_DefDlgProc(HWND, UINT, WPARAM, LPARAM, BOOL) DECLSPEC_HIDDEN;
 LRESULT WINAPI USER_ScrollBarProc(HWND, UINT, WPARAM, LPARAM, BOOL) DECLSPEC_HIDDEN;
-- 
2.34.1




More information about the wine-devel mailing list