aboutsummaryrefslogtreecommitdiff
path: root/src/include/port/solaris.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-04-06 05:36:51 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-04-06 05:36:51 +0000
commit37a609b27fcb67c28ff34d02ae3e82cd9903dd13 (patch)
tree037c29effb24f829edcf52ad172a4c0af0fcc14a /src/include/port/solaris.h
parent3e23b68dac006e8deb0afa327e855258df8de064 (diff)
downloadpostgresql-37a609b27fcb67c28ff34d02ae3e82cd9903dd13.tar.gz
postgresql-37a609b27fcb67c28ff34d02ae3e82cd9903dd13.zip
Now that core functionality is depending on autoconf's AC_C_BIGENDIAN to be
right, there seems precious little reason to have a pile of hand-maintained endianness definitions in src/include/port/*.h. Get rid of those, and make the couple of places that used them depend on WORDS_BIGENDIAN instead.
Diffstat (limited to 'src/include/port/solaris.h')
-rw-r--r--src/include/port/solaris.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/include/port/solaris.h b/src/include/port/solaris.h
index e13af401e36..3fd0fdbbdc0 100644
--- a/src/include/port/solaris.h
+++ b/src/include/port/solaris.h
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/src/include/port/solaris.h,v 1.15 2007/01/10 18:22:50 tgl Exp $ */
+/* $PostgreSQL: pgsql/src/include/port/solaris.h,v 1.16 2007/04/06 05:36:51 tgl Exp $ */
/*
* Sort this out for all operating systems some time. The __xxx
@@ -25,28 +25,6 @@
#include <sys/isa_defs.h>
#endif
-#ifndef BIG_ENDIAN
-#define BIG_ENDIAN 4321
-#endif
-#ifndef LITTLE_ENDIAN
-#define LITTLE_ENDIAN 1234
-#endif
-#ifndef PDP_ENDIAN
-#define PDP_ENDIAN 3412
-#endif
-
-#ifndef BYTE_ORDER
-#ifdef __sparc__
-#define BYTE_ORDER BIG_ENDIAN
-#endif
-#ifdef __i386__
-#define BYTE_ORDER LITTLE_ENDIAN
-#endif
-#if defined(__amd64___) || defined(__x86_64__)
-#define BYTE_ORDER LITTLE_ENDIAN
-#endif
-#endif
-
/*
* Many versions of Solaris have broken strtod() --- see bug #4751182.
* This has been fixed in current versions of Solaris: