Skip to content

Commit

Permalink
Windows needs this symbol declared as extern "C" in order to find it.
Browse files Browse the repository at this point in the history
  • Loading branch information
vasole committed Nov 29, 2022
1 parent bfee97b commit 419794d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/hdf5/include/H5Epublic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) */
Expand Down

0 comments on commit 419794d

Please sign in to comment.