2010-07-20 Ozkan Sezer <sezeroz@gmail.com> * crt/crtexe.c (_MINGW_INSTALL_DEBUG_MATHERR): __attribute__((weak)) is for gcc only. From Amine Khaldi. git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@2906 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-crt/ChangeLog b/mingw-w64-crt/ChangeLog index 65e5553..22c2398 100644 --- a/mingw-w64-crt/ChangeLog +++ b/mingw-w64-crt/ChangeLog
@@ -1,5 +1,10 @@ 2010-07-20 Ozkan Sezer <sezeroz@gmail.com> + * crt/crtexe.c (_MINGW_INSTALL_DEBUG_MATHERR): __attribute__((weak)) + is for gcc only. From Amine Khaldi. + +2010-07-20 Ozkan Sezer <sezeroz@gmail.com> + * include/sect_attribs.h: Moved the _MSC_VER ifdef up to cover the _ATTRIBUTES macro which is only for the M$ section pragmas. Changed the __x86_64__ and __ia64__ ifdefs to _M_IA64 and _M_AMD64, because
diff --git a/mingw-w64-crt/crt/crtexe.c b/mingw-w64-crt/crt/crtexe.c index 71c934e..4a0328c 100644 --- a/mingw-w64-crt/crt/crtexe.c +++ b/mingw-w64-crt/crt/crtexe.c
@@ -51,7 +51,11 @@ #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 *);