aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/xeinfo.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/xeinfo.adb')
-rw-r--r--gcc/ada/xeinfo.adb9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ada/xeinfo.adb b/gcc/ada/xeinfo.adb
index ba9ded9..cce5831 100644
--- a/gcc/ada/xeinfo.adb
+++ b/gcc/ada/xeinfo.adb
@@ -276,6 +276,10 @@ begin
Put_Line (Ofile, "");
+ Put_Line (Ofile, "#ifdef __cplusplus");
+ Put_Line (Ofile, "extern ""C"" {");
+ Put_Line (Ofile, "#endif");
+
-- Find and record pragma Inlines
loop
@@ -492,6 +496,11 @@ begin
end loop;
Put_Line (Ofile, "");
+
+ Put_Line (Ofile, "#ifdef __cplusplus");
+ Put_Line (Ofile, "}");
+ Put_Line (Ofile, "#endif");
+
Put_Line
(Ofile,
"/* End of einfo.h (C version of Einfo package specification) */");