Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / icu / icu4c-solarisgcc.patch
blobd61ad3278294382e737114985c8c6fbaa17d5c7c
1 diff -uriwb misc/build/icu.old/source/aclocal.m4 misc/build/icu/source/aclocal.m4
2 --- misc/build/icu.old/source/aclocal.m4 2012-04-05 21:49:28.000000000 +0100
3 +++ misc/build/icu/source/aclocal.m4 2012-06-21 15:44:57.299256932 +0100
4 @@ -455,7 +455,7 @@
5 case "${host}" in
6 *-*-solaris*)
7 CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long"
8 - CFLAGS="$CFLAGS -D__STDC__=0";;
9 + CFLAGS="$CFLAGS -std=c99";;
10 *-*-hpux*)
11 echo "# Note: We are not using '-ansi' with HP/UX GCC because int64_t broke, see <http://bugs.icu-project.org/trac/ticket/8493>"
12 CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long";;
13 @@ -474,10 +474,6 @@
14 if test "$GXX" = yes
15 then
16 CXXFLAGS="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
17 - case "${host}" in
18 - *-*-solaris*)
19 - CXXFLAGS="$CXXFLAGS -D__STDC__=0";;
20 - esac
21 else
22 case "${host}" in
23 *-*-cygwin)
24 diff -uriwb misc/build/icu.old/source/common/uposixdefs.h misc/build/icu/source/common/uposixdefs.h
25 --- misc/build/icu.old/source/common/uposixdefs.h 2012-04-05 21:46:18.000000000 +0100
26 +++ misc/build/icu/source/common/uposixdefs.h 2012-06-21 15:45:17.613369477 +0100
27 @@ -52,7 +52,7 @@
29 * z/OS needs this definition for timeval and to get usleep.
31 -#if !defined(_XOPEN_SOURCE_EXTENDED)
32 +#if !defined(_XOPEN_SOURCE_EXTENDED) && (defined(__IBMC__) || defined(__IBMCPP__))
33 # define _XOPEN_SOURCE_EXTENDED 1
34 #endif
36 diff -uriwb misc/build/icu.old/source/configure misc/build/icu/source/configure
37 --- misc/build/icu.old/source/configure 2012-04-05 21:49:28.000000000 +0100
38 +++ misc/build/icu/source/configure 2012-06-21 15:44:42.817030445 +0100
39 @@ -4264,7 +4264,7 @@
40 case "${host}" in
41 *-*-solaris*)
42 CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long"
43 - CFLAGS="$CFLAGS -D__STDC__=0";;
44 + CFLAGS="$CFLAGS -std=c99";;
45 *-*-hpux*)
46 echo "# Note: We are not using '-ansi' with HP/UX GCC because int64_t broke, see <http://bugs.icu-project.org/trac/ticket/8493>"
47 CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long";;
48 @@ -4283,10 +4283,6 @@
49 if test "$GXX" = yes
50 then
51 CXXFLAGS="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
52 - case "${host}" in
53 - *-*-solaris*)
54 - CXXFLAGS="$CXXFLAGS -D__STDC__=0";;
55 - esac
56 else
57 case "${host}" in
58 *-*-cygwin)