Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc4e7e67

Browse files
committed
Make sure BYTE_ORDER gets defined in 64-bit builds on Solaris,
per Stefan Kaltenbrunner.
1 parenta191a16 commitc4e7e67

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/0422: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
#defineBYTE_ORDER LITTLE_ENDIAN
3644
#endif
45+
#if defined(__amd64___)|| defined(__x86_64__)
46+
#defineBYTE_ORDER LITTLE_ENDIAN
47+
#endif
3748
#endif
3849

3950
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp