Module: wine Branch: master Commit: 031c73af3078b0c7fc45d0aa94c3852097940c65 URL: http://source.winehq.org/git/wine.git/?a=commit;h=031c73af3078b0c7fc45d0aa94...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Jun 8 16:45:54 2009 +0200
user32: Disable assert() for the mingw build since mingw gets confused trying to import MessageBoxA.
---
dlls/user32/user_private.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/user_private.h b/dlls/user32/user_private.h index f1a6585..1ff6ef4 100644 --- a/dlls/user32/user_private.h +++ b/dlls/user32/user_private.h @@ -354,4 +354,10 @@ typedef struct
extern void CURSORICON_FreeModuleIcons( HMODULE16 hModule ) DECLSPEC_HIDDEN;
+/* Mingw's assert() imports MessageBoxA and gets confused by user32 exporting it */ +#ifdef __MINGW32__ +#undef assert +#define assert(expr) ((void)0) +#endif + #endif /* __WINE_USER_PRIVATE_H */