summaryrefslogtreecommitdiff
path: root/tests/exception3.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/exception3.c')
-rw-r--r--tests/exception3.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/exception3.c b/tests/exception3.c
index d3eb364..915a0e9 100644
--- a/tests/exception3.c
+++ b/tests/exception3.c
@@ -78,9 +78,14 @@
#if defined(__cplusplus)
#if defined(_MSC_VER)
-#include <eh.h>
+# include <eh.h>
#else
-#include <new.h>
+# if defined(__GNUC__) && __GNUC__ < 3
+# include <new.h>
+# else
+# include <new>
+ using std::set_terminate;
+# endif
#endif
/*