aboutsummaryrefslogtreecommitdiffstats
path: root/util/mkerr.pl
diff options
context:
space:
mode:
Diffstat (limited to 'util/mkerr.pl')
-rw-r--r--util/mkerr.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/mkerr.pl b/util/mkerr.pl
index aac87bbf3b..6004853bc1 100644
--- a/util/mkerr.pl
+++ b/util/mkerr.pl
@@ -377,6 +377,10 @@ foreach $lib (keys %csrc)
"#ifndef HEADER_${lib}_ERR_H\n",
"#define HEADER_${lib}_ERR_H\n",
"\n",
+"#ifdef __cplusplus\n",
+"extern \"C\" {\n",
+"#endif\n",
+"\n",
"/* BEGIN ERROR CODES */\n";
}
open (OUT, ">$hfile") || die "Can't Open File $hfile for writing\n";