aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/tinfo2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/tinfo2.cc')
-rw-r--r--gcc/cp/tinfo2.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/tinfo2.cc b/gcc/cp/tinfo2.cc
index f89980a..39fe98c 100644
--- a/gcc/cp/tinfo2.cc
+++ b/gcc/cp/tinfo2.cc
@@ -28,10 +28,12 @@
// the GNU General Public License.
#include <stddef.h>
-#include <stdlib.h> // for abort
#include "tinfo.h"
#include "new" // for placement new
+// We can't rely on having stdlib.h if we're freestanding.
+extern "C" void abort ();
+
using std::type_info;
#if !defined(__GXX_ABI_VERSION) || __GXX_ABI_VERSION < 100