aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/env.c')
-rw-r--r--gcc/ada/env.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ada/env.c b/gcc/ada/env.c
index c53678a..acd928c 100644
--- a/gcc/ada/env.c
+++ b/gcc/ada/env.c
@@ -6,7 +6,7 @@
* *
* C Implementation File *
* *
- * Copyright (C) 2005-2010, Free Software Foundation, Inc. *
+ * Copyright (C) 2005-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- *
@@ -37,6 +37,10 @@
#define _BSD
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef IN_RTS
#include "tconfig.h"
#include "tsystem.h"
@@ -323,3 +327,7 @@ void __gnat_clearenv (void) {
clearenv ();
#endif
}
+
+#ifdef __cplusplus
+}
+#endif