From af46104f95c5ac518b1520e7a4286ef425266360 Mon Sep 17 00:00:00 2001 From: "Taylor R. Campbell" Date: Fri, 22 Aug 2008 22:07:19 +0000 Subject: [PATCH] If __powerpc__ or __powerpc64__ is defined, define __ppc__ or __ppc64__, repsectively. This comes up on NetBSD; why GCC uses different cpp symbols for different operating systems on a common machine architecture, I haven't the faintest clue. --- v7/src/microcode/confshared.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/v7/src/microcode/confshared.h b/v7/src/microcode/confshared.h index e82f09b7f..24416fd54 100644 --- a/v7/src/microcode/confshared.h +++ b/v7/src/microcode/confshared.h @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: confshared.h,v 11.18 2008/01/30 20:02:11 cph Exp $ +$Id: confshared.h,v 11.19 2008/08/22 22:07:19 riastradh Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -589,6 +589,14 @@ extern void win32_stack_reset (void); #define MAX_FLONUM_EXPONENT 1023 #endif +#ifdef __powerpc__ +# define __ppc__ 1 +#endif + +#ifdef __powerpc64__ +# define __ppc64__ +#endif + #ifdef __ppc__ # define MACHINE_TYPE "PowerPC-32" # define CURRENT_FASL_ARCH FASL_PPC32 -- 2.25.1