acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Make sure required C99 support is enabled correctly before long long is activated.
2001-04-20 Benjamin Kosnik <bkoz@redhat.com> * acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Make sure required C99 support is enabled correctly before long long is activated. * aclocal.m4: Regenerate. * configure: Regenerate. * include/backward/backward_warning.h: Format correctly. * testsuite/26_numerics/c99_classification_macros_c.cc: Add. * testsuite/26_numerics/c99_classification_macros_c++.cc: Add. * testsuite/26_numerics/c99_macros.cc: Remove. From-SVN: r41470
This commit is contained in:
parent
4b3db7c50c
commit
6c3a9f72bf
@ -1,3 +1,16 @@
|
||||
2001-04-20 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Make sure required C99
|
||||
support is enabled correctly before long long is activated.
|
||||
* aclocal.m4: Regenerate.
|
||||
* configure: Regenerate.
|
||||
|
||||
* include/backward/backward_warning.h: Format correctly.
|
||||
|
||||
* testsuite/26_numerics/c99_classification_macros_c.cc: Add.
|
||||
* testsuite/26_numerics/c99_classification_macros_c++.cc: Add.
|
||||
* testsuite/26_numerics/c99_macros.cc: Remove.
|
||||
|
||||
2001-04-20 Phil Edwards <pme@sources.redhat.com>
|
||||
|
||||
* include/bits/stl_bvector.h: Replace __ITERATOR_CATEGORY with
|
||||
|
@ -1318,39 +1318,6 @@ EOF
|
||||
])
|
||||
|
||||
|
||||
dnl
|
||||
dnl Check for template specializations for the 'long long' type extension.
|
||||
dnl
|
||||
dnl GLIBCPP_ENABLE_LONG_LONG
|
||||
dnl --enable-long-long defines _GLIBCPP_USE_LONG_LONG
|
||||
dnl --disable-long-long leaves _GLIBCPP_USE_LONG_LONG undefined
|
||||
dnl + Usage: GLIBCPP_ENABLE_LONG_LONG[(DEFAULT)]
|
||||
dnl Where DEFAULT is either `yes' or `no'. If omitted, it
|
||||
dnl defaults to `no'.
|
||||
dnl + If 'long long' stuff is not available, ignores DEFAULT and sets `no'.
|
||||
dnl
|
||||
dnl GLIBCPP_ENABLE_LONG_LONG
|
||||
AC_DEFUN(GLIBCPP_ENABLE_LONG_LONG, [dnl
|
||||
define([GLIBCPP_ENABLE_LONG_LONG_DEFAULT], ifelse($1, yes, yes, no))dnl
|
||||
|
||||
AC_ARG_ENABLE(long-long,
|
||||
changequote(<<, >>)dnl
|
||||
<<--enable-long-long turns on 'long long' [default=>>GLIBCPP_ENABLE_LONG_LONG_DEFAULT],
|
||||
changequote([, ])dnl
|
||||
[case "$enableval" in
|
||||
yes) enable_long_long=yes ;;
|
||||
no) enable_long_long=no ;;
|
||||
*) AC_MSG_ERROR([Unknown argument to enable/disable long long]) ;;
|
||||
esac],
|
||||
enable_long_long=GLIBCPP_ENABLE_LONG_LONG_DEFAULT)dnl
|
||||
|
||||
# Option parsed, now set things appropriately
|
||||
if test x"$enable_long_long" = xyes; then
|
||||
AC_DEFINE(_GLIBCPP_USE_LONG_LONG)
|
||||
fi
|
||||
])
|
||||
|
||||
|
||||
dnl
|
||||
dnl Check for ISO/IEC 9899:1999 "C99" support.
|
||||
dnl
|
||||
@ -1433,6 +1400,49 @@ AC_DEFUN(GLIBCPP_ENABLE_C99, [dnl
|
||||
])
|
||||
|
||||
|
||||
dnl
|
||||
dnl Check for template specializations for the 'long long' type extension.
|
||||
dnl NB: Must check for C99 support before calling _GLIBCPP_ENABLE_LONG_LONG
|
||||
dnl
|
||||
dnl GLIBCPP_ENABLE_LONG_LONG
|
||||
dnl --enable-long-long defines _GLIBCPP_USE_LONG_LONG
|
||||
dnl --disable-long-long leaves _GLIBCPP_USE_LONG_LONG undefined
|
||||
dnl + Usage: GLIBCPP_ENABLE_LONG_LONG[(DEFAULT)]
|
||||
dnl Where DEFAULT is either `yes' or `no'. If omitted, it
|
||||
dnl defaults to `no'.
|
||||
dnl + If 'long long' stuff is not available, ignores DEFAULT and sets `no'.
|
||||
dnl
|
||||
dnl GLIBCPP_ENABLE_LONG_LONG
|
||||
AC_DEFUN(GLIBCPP_ENABLE_LONG_LONG, [dnl
|
||||
define([GLIBCPP_ENABLE_LONG_LONG_DEFAULT], ifelse($1, yes, yes, no))dnl
|
||||
|
||||
AC_ARG_ENABLE(long-long,
|
||||
changequote(<<, >>)dnl
|
||||
<<--enable-long-long turns on 'long long' [default=>>GLIBCPP_ENABLE_LONG_LONG_DEFAULT],
|
||||
changequote([, ])dnl
|
||||
[case "$enableval" in
|
||||
yes) enable_long_long=yes ;;
|
||||
no) enable_long_long=no ;;
|
||||
*) AC_MSG_ERROR([Unknown argument to enable/disable long long]) ;;
|
||||
esac],
|
||||
enable_long_long=GLIBCPP_ENABLE_LONG_LONG_DEFAULT)dnl
|
||||
|
||||
# iostreams require strtoll, strtoull to compile. If the
|
||||
# GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
|
||||
# go ahead and allow long long to be used.
|
||||
if test x"$enable_c99" = x"no"; then
|
||||
enable_long_long=no;
|
||||
fi
|
||||
|
||||
# Option parsed, now set things appropriately
|
||||
AC_MSG_CHECKING([for enabled long long support])
|
||||
if test x"$enable_long_long" = xyes; then
|
||||
AC_DEFINE(_GLIBCPP_USE_LONG_LONG)
|
||||
fi
|
||||
AC_MSG_RESULT($enable_long_long)
|
||||
])
|
||||
|
||||
|
||||
dnl
|
||||
dnl Check for what kind of C headers to use.
|
||||
dnl
|
||||
|
76
libstdc++-v3/aclocal.m4
vendored
76
libstdc++-v3/aclocal.m4
vendored
@ -1330,39 +1330,6 @@ EOF
|
||||
])
|
||||
|
||||
|
||||
dnl
|
||||
dnl Check for template specializations for the 'long long' type extension.
|
||||
dnl
|
||||
dnl GLIBCPP_ENABLE_LONG_LONG
|
||||
dnl --enable-long-long defines _GLIBCPP_USE_LONG_LONG
|
||||
dnl --disable-long-long leaves _GLIBCPP_USE_LONG_LONG undefined
|
||||
dnl + Usage: GLIBCPP_ENABLE_LONG_LONG[(DEFAULT)]
|
||||
dnl Where DEFAULT is either `yes' or `no'. If omitted, it
|
||||
dnl defaults to `no'.
|
||||
dnl + If 'long long' stuff is not available, ignores DEFAULT and sets `no'.
|
||||
dnl
|
||||
dnl GLIBCPP_ENABLE_LONG_LONG
|
||||
AC_DEFUN(GLIBCPP_ENABLE_LONG_LONG, [dnl
|
||||
define([GLIBCPP_ENABLE_LONG_LONG_DEFAULT], ifelse($1, yes, yes, no))dnl
|
||||
|
||||
AC_ARG_ENABLE(long-long,
|
||||
changequote(<<, >>)dnl
|
||||
<<--enable-long-long turns on 'long long' [default=>>GLIBCPP_ENABLE_LONG_LONG_DEFAULT],
|
||||
changequote([, ])dnl
|
||||
[case "$enableval" in
|
||||
yes) enable_long_long=yes ;;
|
||||
no) enable_long_long=no ;;
|
||||
*) AC_MSG_ERROR([Unknown argument to enable/disable long long]) ;;
|
||||
esac],
|
||||
enable_long_long=GLIBCPP_ENABLE_LONG_LONG_DEFAULT)dnl
|
||||
|
||||
# Option parsed, now set things appropriately
|
||||
if test x"$enable_long_long" = xyes; then
|
||||
AC_DEFINE(_GLIBCPP_USE_LONG_LONG)
|
||||
fi
|
||||
])
|
||||
|
||||
|
||||
dnl
|
||||
dnl Check for ISO/IEC 9899:1999 "C99" support.
|
||||
dnl
|
||||
@ -1445,6 +1412,49 @@ AC_DEFUN(GLIBCPP_ENABLE_C99, [dnl
|
||||
])
|
||||
|
||||
|
||||
dnl
|
||||
dnl Check for template specializations for the 'long long' type extension.
|
||||
dnl NB: Must check for C99 support before calling _GLIBCPP_ENABLE_LONG_LONG
|
||||
dnl
|
||||
dnl GLIBCPP_ENABLE_LONG_LONG
|
||||
dnl --enable-long-long defines _GLIBCPP_USE_LONG_LONG
|
||||
dnl --disable-long-long leaves _GLIBCPP_USE_LONG_LONG undefined
|
||||
dnl + Usage: GLIBCPP_ENABLE_LONG_LONG[(DEFAULT)]
|
||||
dnl Where DEFAULT is either `yes' or `no'. If omitted, it
|
||||
dnl defaults to `no'.
|
||||
dnl + If 'long long' stuff is not available, ignores DEFAULT and sets `no'.
|
||||
dnl
|
||||
dnl GLIBCPP_ENABLE_LONG_LONG
|
||||
AC_DEFUN(GLIBCPP_ENABLE_LONG_LONG, [dnl
|
||||
define([GLIBCPP_ENABLE_LONG_LONG_DEFAULT], ifelse($1, yes, yes, no))dnl
|
||||
|
||||
AC_ARG_ENABLE(long-long,
|
||||
changequote(<<, >>)dnl
|
||||
<<--enable-long-long turns on 'long long' [default=>>GLIBCPP_ENABLE_LONG_LONG_DEFAULT],
|
||||
changequote([, ])dnl
|
||||
[case "$enableval" in
|
||||
yes) enable_long_long=yes ;;
|
||||
no) enable_long_long=no ;;
|
||||
*) AC_MSG_ERROR([Unknown argument to enable/disable long long]) ;;
|
||||
esac],
|
||||
enable_long_long=GLIBCPP_ENABLE_LONG_LONG_DEFAULT)dnl
|
||||
|
||||
# iostreams require strtoll, strtoull to compile. If the
|
||||
# GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
|
||||
# go ahead and allow long long to be used.
|
||||
if test x"$enable_c99" = x"no"; then
|
||||
enable_long_long=no;
|
||||
fi
|
||||
|
||||
# Option parsed, now set things appropriately
|
||||
AC_MSG_CHECKING([for enabled long long support])
|
||||
if test x"$enable_long_long" = xyes; then
|
||||
AC_DEFINE(_GLIBCPP_USE_LONG_LONG)
|
||||
fi
|
||||
AC_MSG_RESULT($enable_long_long)
|
||||
])
|
||||
|
||||
|
||||
dnl
|
||||
dnl Check for what kind of C headers to use.
|
||||
dnl
|
||||
|
1442
libstdc++-v3/configure
vendored
1442
libstdc++-v3/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -29,10 +29,10 @@
|
||||
#define _CPP_BACKWARD_BACKWARD_WARNING_H 1
|
||||
|
||||
#ifdef __DEPRECATED
|
||||
# warning "This file includes at least one deprecated or antiquated header."
|
||||
# warning "Please use the <X> file instead of <X.h> file for "C++" includes"
|
||||
# warning "and use the <cX> file instead of <X.h> file for "C" includes."
|
||||
# warning "To disable this warning use -Wno-deprecated."
|
||||
#warning This file includes at least one deprecated or antiquated header. \
|
||||
Please use the <X> header instead of <X.h> header for 'C++' includes \
|
||||
and use the <cX> header instead of <X.h> header for 'C' includes. \
|
||||
To disable this warning use -Wno-deprecated.
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user