From d7ebf9ea950d7aee3b8cf3e316aa260211719afb Mon Sep 17 00:00:00 2001 From: David O'Brien Date: Tue, 23 Nov 1999 06:09:34 +0000 Subject: [PATCH] xm-i386.h: Define `__i386__' if not defined... * xm-i386.h: Define `__i386__' if not defined, rather than `i386' which is in the user's namespace. * libgcc2.c: Look for the ANSI-C approved `__i386__' symbol, vs. `i386' which is not in our namespace. From-SVN: r30627 --- gcc/ChangeLog | 7 +++++++ gcc/config/i386/xm-i386.h | 4 ++-- gcc/libgcc2.c | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c11e1a25278..e19a9e1c1b5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +Mon Nov 22 23:09:44 1999 David O'Brien + + * xm-i386.h: Define `__i386__' if not defined, rather than `i386' + which is in the user's namespace. + * libgcc2.c: Look for the ANSI-C approved `__i386__' symbol, vs. + `i386' which is not in our namespace. + Mon Nov 22 22:58:01 1999 "R. Kelley Cook" * invoke.texi (ARM Options): Add in -mno-alignment-traps diff --git a/gcc/config/i386/xm-i386.h b/gcc/config/i386/xm-i386.h index acc16576709..bb0c34e507b 100644 --- a/gcc/config/i386/xm-i386.h +++ b/gcc/config/i386/xm-i386.h @@ -18,8 +18,8 @@ along with GNU CC; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifndef i386 -#define i386 +#ifndef __i386__ +#define __i386__ #endif /* #defines that need visibility everywhere. */ diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index 114ada21f61..861e6d98ca5 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -2596,7 +2596,7 @@ long getpagesize() #endif } -#ifdef i386 +#ifdef __i386__ extern int VirtualProtect (char *, int, int, int *) __attribute__((stdcall)); #endif -- 2.30.2