Commit fdec36ab by Paolo Carlini Committed by Paolo Carlini

cstdlib (at_quick_exit, quick_exit): Provide in C++11 mode.

2013-02-12  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/c_std/cstdlib (at_quick_exit, quick_exit): Provide in
	C++11 mode.

From-SVN: r195974
parent a011aa39
2013-02-12 Paolo Carlini <paolo.carlini@oracle.com>
* include/c_std/cstdlib (at_quick_exit, quick_exit): Provide in
C++11 mode.
2013-02-12 Julian Brown <julian@codesourcery.com> 2013-02-12 Julian Brown <julian@codesourcery.com>
* testsuite/22_locale/time_get/get_weekday/char/38081-1.cc (test01): * testsuite/22_locale/time_get/get_weekday/char/38081-1.cc (test01):
......
...@@ -57,6 +57,14 @@ namespace std ...@@ -57,6 +57,14 @@ namespace std
extern "C" void abort(void) throw () _GLIBCXX_NORETURN; extern "C" void abort(void) throw () _GLIBCXX_NORETURN;
extern "C" int atexit(void (*)()) throw (); extern "C" int atexit(void (*)()) throw ();
extern "C" void exit(int) throw () _GLIBCXX_NORETURN; extern "C" void exit(int) throw () _GLIBCXX_NORETURN;
#if __cplusplus >= 201103L
# ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT
extern "C" int at_quick_exit(void (*)()) throw ();
# endif
# ifdef _GLIBCXX_HAVE_QUICK_EXIT
extern "C" void quick_exit(int) throw() _GLIBCXX_NORETURN;
# endif
#endif
} // namespace } // namespace
#else #else
...@@ -67,6 +75,11 @@ namespace std ...@@ -67,6 +75,11 @@ namespace std
#undef abort #undef abort
#undef abs #undef abs
#undef atexit #undef atexit
#if __cplusplus >= 201103L
# ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT
# undef at_quick_exit
# endif
#endif
#undef atof #undef atof
#undef atoi #undef atoi
#undef atol #undef atol
...@@ -83,6 +96,11 @@ namespace std ...@@ -83,6 +96,11 @@ namespace std
#undef mbstowcs #undef mbstowcs
#undef mbtowc #undef mbtowc
#undef qsort #undef qsort
#if __cplusplus >= 201103L
# ifdef _GLIBCXX_HAVE_QUICK_EXIT
# undef quick_exit
# endif
#endif
#undef rand #undef rand
#undef realloc #undef realloc
#undef srand #undef srand
...@@ -103,6 +121,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -103,6 +121,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
using ::abort; using ::abort;
using ::abs; using ::abs;
using ::atexit; using ::atexit;
#if __cplusplus >= 201103L
# ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT
using ::at_quick_exit;
# endif
#endif
using ::atof; using ::atof;
using ::atoi; using ::atoi;
using ::atol; using ::atol;
...@@ -121,6 +144,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -121,6 +144,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
using ::mbtowc; using ::mbtowc;
#endif // _GLIBCXX_HAVE_MBSTATE_T #endif // _GLIBCXX_HAVE_MBSTATE_T
using ::qsort; using ::qsort;
#if __cplusplus >= 201103L
# ifdef _GLIBCXX_HAVE_QUICK_EXIT
using ::quick_exit;
# endif
#endif
using ::rand; using ::rand;
using ::realloc; using ::realloc;
using ::srand; using ::srand;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment