Author: sserapion
Date: Sat Sep 13 02:05:42 2008
New Revision: 36175
URL:
http://svn.reactos.org/svn/reactos?rev=36175&view=rev
Log:
Protect other architectures from i386 and amd64 specifics.
Disallow warnings in this module(like it was before).
Modified:
branches/ros-amd64-bringup/reactos/lib/3rdparty/mingw/crtexe.c
branches/ros-amd64-bringup/reactos/lib/3rdparty/mingw/mingw.rbuild
branches/ros-amd64-bringup/reactos/lib/3rdparty/mingw/pseudo-reloc.c
Modified: branches/ros-amd64-bringup/reactos/lib/3rdparty/mingw/crtexe.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/3…
==============================================================================
--- branches/ros-amd64-bringup/reactos/lib/3rdparty/mingw/crtexe.c [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/lib/3rdparty/mingw/crtexe.c [iso-8859-1] Sat Sep 13
02:05:42 2008
@@ -202,7 +202,9 @@
if (__dyn_tls_init_callback != NULL && _IsNonwritableInCurrentImage ((PBYTE)
&__dyn_tls_init_callback))
__dyn_tls_init_callback (NULL, DLL_THREAD_ATTACH, NULL);
+#if defined(__i386__) || defined(__x86_64__)
_pei386_runtime_relocator ();
+#endif
#if defined(__x86_64__)
__asm__ __volatile__ (
Modified: branches/ros-amd64-bringup/reactos/lib/3rdparty/mingw/mingw.rbuild
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/3…
==============================================================================
--- branches/ros-amd64-bringup/reactos/lib/3rdparty/mingw/mingw.rbuild [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/lib/3rdparty/mingw/mingw.rbuild [iso-8859-1] Sat
Sep 13 02:05:42 2008
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!DOCTYPE group SYSTEM "../../../tools/rbuild/project.dtd">
<group>
-<module name="mingw_common" type="staticlibrary"
isstartuplib="true" underscoresymbols="true"
allowwarnings="true">
+<module name="mingw_common" type="staticlibrary"
isstartuplib="true" underscoresymbols="true">
<importlibrary definition="moldname-msvcrt.def"
dllname="msvcrt.dll" />
<include base="mingw_common">include</include>
<file>CRT_fp10.c</file>
Modified: branches/ros-amd64-bringup/reactos/lib/3rdparty/mingw/pseudo-reloc.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/3…
==============================================================================
--- branches/ros-amd64-bringup/reactos/lib/3rdparty/mingw/pseudo-reloc.c [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/lib/3rdparty/mingw/pseudo-reloc.c [iso-8859-1] Sat
Sep 13 02:05:42 2008
@@ -11,6 +11,9 @@
DISCLAMED. This includes but is not limited to warrenties of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
+
+/* Only necesary on x86 and amd64 targets */
+#if defined(__i386__) || defined(__x86_64__)
#include <windows.h>
@@ -44,3 +47,4 @@
&__RUNTIME_PSEUDO_RELOC_LIST_END__,
&_image_base__);
}
+#endif