aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-09-21 00:48:12 +0100
committerJonathan Wakely <jwakely@redhat.com>2022-09-21 08:44:21 +0100
commitcb29396e67f5e2622e31bf83f253c6d66c51135d (patch)
treec8173e56f368f42e951faca7673901cc788dbf96
parentd784c5cfe694fe8d5620504ae45ceaebb3cc9f7c (diff)
downloadgcc-cb29396e67f5e2622e31bf83f253c6d66c51135d.zip
gcc-cb29396e67f5e2622e31bf83f253c6d66c51135d.tar.gz
gcc-cb29396e67f5e2622e31bf83f253c6d66c51135d.tar.bz2
libstdc++: Add _Exit to <stdlib.h> for freestanding
When I added std::_Exit to the freestanding declarations in <cstdlib> I should also have added it to <stdlib.h>. libstdc++-v3/ChangeLog: * include/c_compatibility/stdlib.h [!_GLIBCXX_HOSTED]: Add using-declaration for _Exit.
-rw-r--r--libstdc++-v3/include/c_compatibility/stdlib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libstdc++-v3/include/c_compatibility/stdlib.h b/libstdc++-v3/include/c_compatibility/stdlib.h
index 377b910..70fa4c8 100644
--- a/libstdc++-v3/include/c_compatibility/stdlib.h
+++ b/libstdc++-v3/include/c_compatibility/stdlib.h
@@ -45,6 +45,9 @@ using std::exit;
# ifdef _GLIBCXX_HAVE_QUICK_EXIT
using std::quick_exit;
# endif
+# if _GLIBCXX_USE_C99_STDLIB
+ using std::_Exit;
+# endif
#endif
#if _GLIBCXX_HOSTED