git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a191a16)
Make sure BYTE_ORDER gets defined in 64-bit builds on Solaris,
2007年1月10日 18:22:50 +0000 (18:22 +0000)
2007年1月10日 18:22:50 +0000 (18:22 +0000)
per Stefan Kaltenbrunner.


diff --git a/src/include/port/solaris.h b/src/include/port/solaris.h
index e671153b34f88b6644e39931a8cbdf19ac4bd937..e13af401e367d8ca456e217b638b36e942311c3a 100644 (file)
--- 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.14 2006年10月04日 22:49:44 momjian Exp $ */
+/* $PostgreSQL: pgsql/src/include/port/solaris.h,v 1.15 2007年01月10日 18:22:50 tgl Exp $ */
/*
* Sort this out for all operating systems some time. The __xxx
@@ -9,6 +9,14 @@
#define __i386__
#endif
+#if defined(__amd64) && !defined(__amd64__)
+#define __amd64__
+#endif
+
+#if defined(__x86_64) && !defined(__x86_64__)
+#define __x86_64__
+#endif
+
#if defined(__sparc) && !defined(__sparc__)
#define __sparc__
#endif
@@ -34,6 +42,9 @@
#ifdef __i386__
#define BYTE_ORDER LITTLE_ENDIAN
#endif
+#if defined(__amd64___) || defined(__x86_64__)
+#define BYTE_ORDER LITTLE_ENDIAN
+#endif
#endif
/*
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /