summaryrefslogtreecommitdiff
path: root/gdb/exceptions.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/exceptions.c')
-rw-r--r--gdb/exceptions.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/exceptions.c b/gdb/exceptions.c
index 1fd56102eea..54ce5978c61 100644
--- a/gdb/exceptions.c
+++ b/gdb/exceptions.c
@@ -29,7 +29,11 @@
#include "serial.h"
#include "gdbthread.h"
-const struct gdb_exception exception_none = { 0, GDB_NO_ERROR, NULL };
+const struct gdb_exception exception_none
+#ifndef __cplusplus
+ = { 0, GDB_NO_ERROR, NULL };
+#endif
+;
/* Possible catcher states. */
enum catcher_state {