ICU-8765 Undo previous change to remove __STDC__ redefinition on Solaris GCC because it is required on older GCC compilers
X-SVN-Rev: 30568
This commit is contained in:
parent
6f6b1b346c
commit
a2ede97dc9
7
icu4c/source/aclocal.m4
vendored
7
icu4c/source/aclocal.m4
vendored
@ -454,7 +454,8 @@ AC_DEFUN(AC_CHECK_STRICT_COMPILE,
|
||||
then
|
||||
case "${host}" in
|
||||
*-*-solaris*)
|
||||
CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long";;
|
||||
CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long"
|
||||
CFLAGS="$CFLAGS -D__STDC__=0";;
|
||||
*-*-hpux*)
|
||||
echo "# Note: We are not using '-ansi' with HP/UX GCC because int64_t broke, see <http://bugs.icu-project.org/trac/ticket/8493>"
|
||||
CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long";;
|
||||
@ -473,6 +474,10 @@ AC_DEFUN(AC_CHECK_STRICT_COMPILE,
|
||||
if test "$GXX" = yes
|
||||
then
|
||||
CXXFLAGS="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
|
||||
case "${host}" in
|
||||
*-*-solaris*)
|
||||
CXXFLAGS="$CXXFLAGS -D__STDC__=0";;
|
||||
esac
|
||||
else
|
||||
case "${host}" in
|
||||
*-*-cygwin)
|
||||
|
7
icu4c/source/configure
vendored
7
icu4c/source/configure
vendored
@ -4315,7 +4315,8 @@ $as_echo "$ac_use_strict_options" >&6; }
|
||||
then
|
||||
case "${host}" in
|
||||
*-*-solaris*)
|
||||
CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long";;
|
||||
CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long"
|
||||
CFLAGS="$CFLAGS -D__STDC__=0";;
|
||||
*-*-hpux*)
|
||||
echo "# Note: We are not using '-ansi' with HP/UX GCC because int64_t broke, see <http://bugs.icu-project.org/trac/ticket/8493>"
|
||||
CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long";;
|
||||
@ -4334,6 +4335,10 @@ $as_echo "$ac_use_strict_options" >&6; }
|
||||
if test "$GXX" = yes
|
||||
then
|
||||
CXXFLAGS="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
|
||||
case "${host}" in
|
||||
*-*-solaris*)
|
||||
CXXFLAGS="$CXXFLAGS -D__STDC__=0";;
|
||||
esac
|
||||
else
|
||||
case "${host}" in
|
||||
*-*-cygwin)
|
||||
|
Loading…
Reference in New Issue
Block a user