aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/exit.c')
-rw-r--r--gcc/ada/exit.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ada/exit.c b/gcc/ada/exit.c
index 92873c1..47983e8 100644
--- a/gcc/ada/exit.c
+++ b/gcc/ada/exit.c
@@ -6,7 +6,7 @@
* *
* C Implementation File *
* *
- * Copyright (C) 1992-2009 Free Software Foundation, Inc. *
+ * Copyright (C) 1992-2011, Free Software Foundation, Inc. *
* *
* GNAT is free software; you can redistribute it and/or modify it under *
* terms of the GNU General Public License as published by the Free Soft- *
@@ -29,6 +29,10 @@
* *
****************************************************************************/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef __alpha_vxworks
#include "vxWorks.h"
#endif
@@ -44,7 +48,7 @@
#include "adaint.h"
-/* Routine used by Ada.Command_Line.Set_Exit_Status */
+/* Routine used by Ada.Command_Line.Set_Exit_Status. */
int gnat_exit_status = 0;
@@ -53,3 +57,7 @@ __gnat_set_exit_status (int i)
{
gnat_exit_status = i;
}
+
+#ifdef __cplusplus
+}
+#endif