From: Amine Khaldi Date: Tue, 20 Jul 2010 19:18:03 +0000 (+0000) Subject: [MINGW-W64] X-Git-Tag: backups/Ash_Shell@48412~1^2~157 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=d0588d00640dfd20d98465b5002e84171674c047;hp=fc502885bc74324d5ed1aaa22f639338324d3fad [MINGW-W64] - MSVC compatibility fixes. svn path=/trunk/; revision=48142 --- diff --git a/reactos/lib/3rdparty/mingw/crtexe.c b/reactos/lib/3rdparty/mingw/crtexe.c index 71c934e8ad1..ce76fc19321 100644 --- a/reactos/lib/3rdparty/mingw/crtexe.c +++ b/reactos/lib/3rdparty/mingw/crtexe.c @@ -20,6 +20,7 @@ #include #include #include +#include #ifndef __winitenv extern wchar_t *** __MINGW_IMP_SYMBOL(__winitenv); @@ -51,7 +52,11 @@ extern int * __MINGW_IMP_SYMBOL(_commode); #define _commode (* __MINGW_IMP_SYMBOL(_commode)) extern int _dowildcard; +#if defined(__GNUC__) int _MINGW_INSTALL_DEBUG_MATHERR __attribute__((weak)) = 0; +#else +int _MINGW_INSTALL_DEBUG_MATHERR = 0; +#endif extern int __defaultmatherr; extern _CRTIMP void __cdecl _initterm(_PVFV *, _PVFV *);