Skip to content

Commit c4e7e67

Browse files
committed
Make sure BYTE_ORDER gets defined in 64-bit builds on Solaris,
per Stefan Kaltenbrunner.
1 parent a191a16 commit c4e7e67

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/include/port/solaris.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/include/port/solaris.h,v 1.14 2006/10/04 22:49:44 momjian Exp $ */
1+
/* $PostgreSQL: pgsql/src/include/port/solaris.h,v 1.15 2007/01/10 18:22:50 tgl Exp $ */
22

33
/*
44
* Sort this out for all operating systems some time. The __xxx
@@ -9,6 +9,14 @@
99
#define __i386__
1010
#endif
1111

12+
#if defined(__amd64) && !defined(__amd64__)
13+
#define __amd64__
14+
#endif
15+
16+
#if defined(__x86_64) && !defined(__x86_64__)
17+
#define __x86_64__
18+
#endif
19+
1220
#if defined(__sparc) && !defined(__sparc__)
1321
#define __sparc__
1422
#endif
@@ -34,6 +42,9 @@
3442
#ifdef __i386__
3543
#define BYTE_ORDER LITTLE_ENDIAN
3644
#endif
45+
#if defined(__amd64___) || defined(__x86_64__)
46+
#define BYTE_ORDER LITTLE_ENDIAN
47+
#endif
3748
#endif
3849

3950
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy