[ros-diffs] [akhaldi] 48142: [MINGW-W64] - MSVC compatibility fixes.

akhaldi at svn.reactos.org akhaldi at svn.reactos.org
Tue Jul 20 19:18:04 UTC 2010


Author: akhaldi
Date: Tue Jul 20 19:18:03 2010
New Revision: 48142

URL: http://svn.reactos.org/svn/reactos?rev=48142&view=rev
Log:
[MINGW-W64]
- MSVC compatibility fixes.

Modified:
    trunk/reactos/lib/3rdparty/mingw/crtexe.c

Modified: trunk/reactos/lib/3rdparty/mingw/crtexe.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/3rdparty/mingw/crtexe.c?rev=48142&r1=48141&r2=48142&view=diff
==============================================================================
--- trunk/reactos/lib/3rdparty/mingw/crtexe.c [iso-8859-1] (original)
+++ trunk/reactos/lib/3rdparty/mingw/crtexe.c [iso-8859-1] Tue Jul 20 19:18:03 2010
@@ -20,6 +20,7 @@
 #include <tchar.h>
 #include <sect_attribs.h>
 #include <locale.h>
+#include <intrin.h>
 
 #ifndef __winitenv
 extern wchar_t *** __MINGW_IMP_SYMBOL(__winitenv);
@@ -51,7 +52,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 *);
 




More information about the Ros-diffs mailing list