public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-libs/icu/files: icu-49.1.2-platforms.patch
@ 2012-07-23 14:51 Mike Gilbert (floppym)
  0 siblings, 0 replies; only message in thread
From: Mike Gilbert (floppym) @ 2012-07-23 14:51 UTC (permalink / raw
  To: gentoo-commits

floppym     12/07/23 14:51:22

  Added:                icu-49.1.2-platforms.patch
  Log:
  Fix detection of some platforms. Patch by Arfrever.
  
  (Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-libs/icu/files/icu-49.1.2-platforms.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/icu/files/icu-49.1.2-platforms.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/icu/files/icu-49.1.2-platforms.patch?rev=1.1&content-type=text/plain

Index: icu-49.1.2-platforms.patch
===================================================================
https://ssl.icu-project.org/trac/ticket/9286
https://ssl.icu-project.org/trac/ticket/9365
https://ssl.icu-project.org/trac/changeset/31780
https://ssl.icu-project.org/trac/changeset/31971
https://ssl.icu-project.org/trac/changeset/32020
https://ssl.icu-project.org/trac/changeset/32023

--- common/putilimp.h
+++ common/putilimp.h
@@ -117,6 +117,8 @@
 #   define U_TIMEZONE __timezone
 #elif U_PLATFORM_USES_ONLY_WIN32_API
 #   define U_TIMEZONE _timezone
+#elif U_PLATFORM == U_PF_BSD && !defined(__NetBSD__)
+   /* not defined */
 #elif U_PLATFORM == U_PF_OS400
    /* not defined */
 #else
--- common/unicode/platform.h
+++ common/unicode/platform.h
@@ -131,7 +131,7 @@
 #   include <android/api-level.h>
 #elif defined(linux) || defined(__linux__) || defined(__linux)
 #   define U_PLATFORM U_PF_LINUX
-#elif defined(BSD) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#elif defined(BSD) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__MirBSD__)
 #   define U_PLATFORM U_PF_BSD
 #elif defined(sun) || defined(__sun)
     /* Check defined(__SVR4) || defined(__svr4__) to distinguish Solaris from SunOS? */
@@ -268,6 +268,9 @@
 #elif U_PLATFORM == U_PF_SOLARIS
     /* Solaris has inttypes.h but not stdint.h. */
 #   define U_HAVE_STDINT_H 0
+#elif U_PLATFORM == U_PF_AIX && !defined(_AIX51) && defined(_POWER)
+    /* PPC AIX <= 4.3 has inttypes.h but not stdint.h. */
+#   define U_HAVE_STDINT_H 0
 #else
 #   define U_HAVE_STDINT_H 1
 #endif
@@ -283,6 +286,9 @@
 #elif U_PLATFORM == U_PF_SOLARIS
     /* Solaris has inttypes.h but not stdint.h. */
 #   define U_HAVE_INTTYPES_H 1
+#elif U_PLATFORM == U_PF_AIX && !defined(_AIX51) && defined(_POWER)
+    /* PPC AIX <= 4.3 has inttypes.h but not stdint.h. */
+#   define U_HAVE_INTTYPES_H 1
 #else
     /* Most platforms have both inttypes.h and stdint.h, or neither. */
 #   define U_HAVE_INTTYPES_H U_HAVE_STDINT_H
@@ -352,6 +358,9 @@
 #elif defined(_PA_RISC1_0) || defined(_PA_RISC1_1) || defined(_PA_RISC2_0)
     /* HPPA do not appear to predefine any endianness macros. */
 #   define U_IS_BIG_ENDIAN 1
+#elif defined(sparc) || defined(__sparc) || defined(__sparc__)
+    /* Some sparc based systems (e.g. Linux) do not predefine any endianness macros. */
+#   define U_IS_BIG_ENDIAN 1
 #else
 #   define U_IS_BIG_ENDIAN 0
 #endif





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-07-23 14:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-23 14:51 [gentoo-commits] gentoo-x86 commit in dev-libs/icu/files: icu-49.1.2-platforms.patch Mike Gilbert (floppym)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox