/[gentoo-x86]/dev-libs/icu/files/icu-49.1.2-platforms.patch
Gentoo

Contents of /dev-libs/icu/files/icu-49.1.2-platforms.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Jul 23 14:51:22 2012 UTC (9 months, 3 weeks ago) by floppym
Branch: MAIN
CVS Tags: HEAD
Fix detection of some platforms. Patch by Arfrever.

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 https://ssl.icu-project.org/trac/ticket/9286
2 https://ssl.icu-project.org/trac/ticket/9365
3 https://ssl.icu-project.org/trac/changeset/31780
4 https://ssl.icu-project.org/trac/changeset/31971
5 https://ssl.icu-project.org/trac/changeset/32020
6 https://ssl.icu-project.org/trac/changeset/32023
7
8 --- common/putilimp.h
9 +++ common/putilimp.h
10 @@ -117,6 +117,8 @@
11 # define U_TIMEZONE __timezone
12 #elif U_PLATFORM_USES_ONLY_WIN32_API
13 # define U_TIMEZONE _timezone
14 +#elif U_PLATFORM == U_PF_BSD && !defined(__NetBSD__)
15 + /* not defined */
16 #elif U_PLATFORM == U_PF_OS400
17 /* not defined */
18 #else
19 --- common/unicode/platform.h
20 +++ common/unicode/platform.h
21 @@ -131,7 +131,7 @@
22 # include <android/api-level.h>
23 #elif defined(linux) || defined(__linux__) || defined(__linux)
24 # define U_PLATFORM U_PF_LINUX
25 -#elif defined(BSD) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
26 +#elif defined(BSD) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__MirBSD__)
27 # define U_PLATFORM U_PF_BSD
28 #elif defined(sun) || defined(__sun)
29 /* Check defined(__SVR4) || defined(__svr4__) to distinguish Solaris from SunOS? */
30 @@ -268,6 +268,9 @@
31 #elif U_PLATFORM == U_PF_SOLARIS
32 /* Solaris has inttypes.h but not stdint.h. */
33 # define U_HAVE_STDINT_H 0
34 +#elif U_PLATFORM == U_PF_AIX && !defined(_AIX51) && defined(_POWER)
35 + /* PPC AIX <= 4.3 has inttypes.h but not stdint.h. */
36 +# define U_HAVE_STDINT_H 0
37 #else
38 # define U_HAVE_STDINT_H 1
39 #endif
40 @@ -283,6 +286,9 @@
41 #elif U_PLATFORM == U_PF_SOLARIS
42 /* Solaris has inttypes.h but not stdint.h. */
43 # define U_HAVE_INTTYPES_H 1
44 +#elif U_PLATFORM == U_PF_AIX && !defined(_AIX51) && defined(_POWER)
45 + /* PPC AIX <= 4.3 has inttypes.h but not stdint.h. */
46 +# define U_HAVE_INTTYPES_H 1
47 #else
48 /* Most platforms have both inttypes.h and stdint.h, or neither. */
49 # define U_HAVE_INTTYPES_H U_HAVE_STDINT_H
50 @@ -352,6 +358,9 @@
51 #elif defined(_PA_RISC1_0) || defined(_PA_RISC1_1) || defined(_PA_RISC2_0)
52 /* HPPA do not appear to predefine any endianness macros. */
53 # define U_IS_BIG_ENDIAN 1
54 +#elif defined(sparc) || defined(__sparc) || defined(__sparc__)
55 + /* Some sparc based systems (e.g. Linux) do not predefine any endianness macros. */
56 +# define U_IS_BIG_ENDIAN 1
57 #else
58 # define U_IS_BIG_ENDIAN 0
59 #endif

  ViewVC Help
Powered by ViewVC 1.1.13