mirror of https://github.com/postgres/postgres
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.REL8_3_STABLE
parent
3e23b68dac
commit
37a609b27f
@ -1,15 +1,3 @@ |
|||||||
/* $PostgreSQL: pgsql/src/include/port/dgux.h,v 1.10 2006/03/11 04:38:38 momjian Exp $ */ |
/* $PostgreSQL: pgsql/src/include/port/dgux.h,v 1.11 2007/04/06 05:36:51 tgl Exp $ */ |
||||||
|
|
||||||
#ifndef BIG_ENDIAN |
/* nothing needed */ |
||||||
#define BIG_ENDIAN 4321 |
|
||||||
#endif |
|
||||||
#ifndef LITTLE_ENDIAN |
|
||||||
#define LITTLE_ENDIAN 1234 |
|
||||||
#endif |
|
||||||
#ifndef PDP_ENDIAN |
|
||||||
#define PDP_ENDIAN 3412 |
|
||||||
#endif |
|
||||||
#ifndef BYTE_ORDER |
|
||||||
#define BYTE_ORDER BIG_ENDIAN |
|
||||||
|
|
||||||
#endif |
|
||||||
|
@ -1,27 +1,3 @@ |
|||||||
/* $PostgreSQL: pgsql/src/include/port/hpux.h,v 1.23 2006/03/11 04:38:38 momjian Exp $ */ |
/* $PostgreSQL: pgsql/src/include/port/hpux.h,v 1.24 2007/04/06 05:36:51 tgl Exp $ */ |
||||||
|
|
||||||
#ifndef BIG_ENDIAN |
/* nothing needed */ |
||||||
#define BIG_ENDIAN 4321 |
|
||||||
#endif |
|
||||||
#ifndef LITTLE_ENDIAN |
|
||||||
#define LITTLE_ENDIAN 1234 |
|
||||||
#endif |
|
||||||
#ifndef PDP_ENDIAN |
|
||||||
#define PDP_ENDIAN 3412 |
|
||||||
#endif |
|
||||||
|
|
||||||
#if defined(__hppa) |
|
||||||
|
|
||||||
#ifndef BYTE_ORDER |
|
||||||
#define BYTE_ORDER BIG_ENDIAN |
|
||||||
#endif |
|
||||||
#elif defined(__ia64) |
|
||||||
|
|
||||||
/* HPUX runs IA64 in big-endian mode */ |
|
||||||
#ifndef BYTE_ORDER |
|
||||||
#define BYTE_ORDER BIG_ENDIAN |
|
||||||
#endif |
|
||||||
#else |
|
||||||
#error unrecognized CPU type for HP-UX |
|
||||||
|
|
||||||
#endif |
|
||||||
|
@ -1,6 +1,3 @@ |
|||||||
#ifndef BYTE_ORDER |
/* $PostgreSQL */ |
||||||
#ifdef MIPSEB |
|
||||||
#define BYTE_ORDER BIG_ENDIAN |
|
||||||
#endif |
|
||||||
|
|
||||||
#endif |
/* nothing needed */ |
||||||
|
Loading…
Reference in new issue