Protect other architectures from i386 and amd64 specifics.

Disallow warnings in this module(like it was before).

svn path=/branches/ros-amd64-bringup/; revision=36175
This commit is contained in:
Samuel Serapion
2008-09-13 07:05:42 +00:00
parent 72adb4a0af
commit 20695eeb01
3 changed files with 7 additions and 1 deletions
+2
View File
@@ -202,7 +202,9 @@ __mingw_CRTStartup (void)
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__ (
+1 -1
View File
@@ -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>
+4
View File
@@ -12,6 +12,9 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
/* Only necesary on x86 and amd64 targets */
#if defined(__i386__) || defined(__x86_64__)
#include <windows.h>
extern char __RUNTIME_PSEUDO_RELOC_LIST__;
@@ -44,3 +47,4 @@ _pei386_runtime_relocator ()
&__RUNTIME_PSEUDO_RELOC_LIST_END__,
&_image_base__);
}
#endif