From 1570741b5a0ed34574874ae14e24d2f721c199f5 Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Thu, 15 Aug 2002 23:04:03 +0000 Subject: [PATCH] Bug 160030: check for __sparc and __i386, which is defined by the Solaris compilers and gcc in strict ANSI conformance mode. sparc and i386 are not defined by the compilers in strict ANSI conformance mode. Modified Files: _solaris32.cfg _solaris64.cfg --- nsprpub/pr/include/md/_solaris32.cfg | 4 ++-- nsprpub/pr/include/md/_solaris64.cfg | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nsprpub/pr/include/md/_solaris32.cfg b/nsprpub/pr/include/md/_solaris32.cfg index 10cb3364c3d6..ec19c4d39fa9 100644 --- a/nsprpub/pr/include/md/_solaris32.cfg +++ b/nsprpub/pr/include/md/_solaris32.cfg @@ -43,12 +43,12 @@ #define SOLARIS #endif -#ifdef sparc +#if defined(sparc) || defined(__sparc) #undef IS_LITTLE_ENDIAN #define IS_BIG_ENDIAN 1 #define PR_ALIGN_OF_INT64 8 #define PR_ALIGN_OF_DOUBLE 8 -#elif defined(i386) +#elif defined(i386) || defined(__i386) #define IS_LITTLE_ENDIAN 1 #undef IS_BIG_ENDIAN #define PR_ALIGN_OF_INT64 4 diff --git a/nsprpub/pr/include/md/_solaris64.cfg b/nsprpub/pr/include/md/_solaris64.cfg index 8318b74baa59..54331c51b2b3 100644 --- a/nsprpub/pr/include/md/_solaris64.cfg +++ b/nsprpub/pr/include/md/_solaris64.cfg @@ -43,12 +43,12 @@ #define SOLARIS #endif -#ifdef sparc +#if defined(sparc) || defined(__sparc) #undef IS_LITTLE_ENDIAN #define IS_BIG_ENDIAN 1 #define PR_ALIGN_OF_INT64 8 #define PR_ALIGN_OF_DOUBLE 8 -#elif defined(i386) +#elif defined(i386) || defined(__i386) #define IS_LITTLE_ENDIAN 1 #undef IS_BIG_ENDIAN #define PR_ALIGN_OF_INT64 4