summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2016-01-04 17:21:05 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2016-01-04 17:21:05 (GMT)
commit064b2f6dd85330a7e06f07c5fd2b8b26c29c8f28 (patch)
treebe2e5eafb6ea3a2d1b940ab0c9c0285fd8018300 /bin
parentf017eb6fc09d74aa83eb5391028be5fd12380d34 (diff)
downloadhdf5-064b2f6dd85330a7e06f07c5fd2b8b26c29c8f28.zip
hdf5-064b2f6dd85330a7e06f07c5fd2b8b26c29c8f28.tar.gz
hdf5-064b2f6dd85330a7e06f07c5fd2b8b26c29c8f28.tar.bz2
[svn-r28788] Added extern C block to H5Epubgen.h (via bin/make_err).
Tested on: 64-bit Ubuntu 15.10 (Linux 4.2.0 x86_64) gcc 5.2.1 serial only
Diffstat (limited to 'bin')
-rwxr-xr-xbin/make_err12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/make_err b/bin/make_err
index 4b1f474..1b39d53fb 100755
--- a/bin/make_err
+++ b/bin/make_err
@@ -175,6 +175,12 @@ sub create_public ($) {
print_warning(*HEADER);
print_startprotect(*HEADER, $file);
+ # Begin extern C block
+ print HEADER "\n";
+ print HEADER "#ifdef __cplusplus\n";
+ print HEADER "extern \"C\" {\n";
+ print HEADER "#endif\n";
+
# Iterate over all the major errors
print HEADER "\n/*********************/\n";
print HEADER "/* Major error codes */\n";
@@ -202,6 +208,12 @@ sub create_public ($) {
}
}
+ # End extern C block
+ print HEADER "\n";
+ print HEADER "#ifdef __cplusplus\n";
+ print HEADER "}\n";
+ print HEADER "#endif\n";
+
print_endprotect(*HEADER, $file);
# Close header file