summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2002-08-15 23:04:03 +0000
committerwtc%netscape.com <devnull@localhost>2002-08-15 23:04:03 +0000
commitaaac447c880684db51c149fd8e90e1be88e824c9 (patch)
treefaa55848c7982d805517acb6cbd4078e7be5d2ac
parent8188235b723a4d661931de6937af7d32cf150f72 (diff)
downloadnspr-hg-aaac447c880684db51c149fd8e90e1be88e824c9.tar.gz
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
-rw-r--r--pr/include/md/_solaris32.cfg4
-rw-r--r--pr/include/md/_solaris64.cfg4
2 files changed, 4 insertions, 4 deletions
diff --git a/pr/include/md/_solaris32.cfg b/pr/include/md/_solaris32.cfg
index 10cb3364..ec19c4d3 100644
--- a/pr/include/md/_solaris32.cfg
+++ b/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/pr/include/md/_solaris64.cfg b/pr/include/md/_solaris64.cfg
index 8318b74b..54331c51 100644
--- a/pr/include/md/_solaris64.cfg
+++ b/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