From 419794d4a483b5069af3bde6ee98929d701d7063 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=2E=20Armando=20Sol=C3=A9?= Date: Tue, 29 Nov 2022 12:37:08 +0100 Subject: [PATCH] Windows needs this symbol declared as extern "C" in order to find it. --- src/hdf5/include/H5Epublic.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hdf5/include/H5Epublic.h b/src/hdf5/include/H5Epublic.h index 57dc5022..d280ba59 100644 --- a/src/hdf5/include/H5Epublic.h +++ b/src/hdf5/include/H5Epublic.h @@ -52,8 +52,14 @@ typedef struct H5E_error2_t { #endif /* _H5private_H */ /* HDF5 error class */ +#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) */