summaryrefslogtreecommitdiffstats
path: root/src/H5Epublic.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Epublic.h')
-rw-r--r--src/H5Epublic.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/H5Epublic.h b/src/H5Epublic.h
index 5f4e325..c01fa2b 100644
--- a/src/H5Epublic.h
+++ b/src/H5Epublic.h
@@ -59,8 +59,15 @@ typedef struct H5E_error2_t {
#endif /* H5private_H */
/* HDF5 error class */
+/* Extern "C" block needed to compile C++ filter plugins with some compilers */
+#ifdef __cplusplus
+extern "C" {
+#endif
#define H5E_ERR_CLS (H5OPEN H5E_ERR_CLS_g)
H5_DLLVAR hid_t H5E_ERR_CLS_g;
+#ifdef __cplusplus
+}
+#endif
/* Include the automatically generated public header information */
/* (This includes the list of major and minor error codes for the library) */