mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-07 16:37:56 +08:00
H5E_ERR_CLS_g symbol missing when compiling C++ plugins (#2269)
C++ HDF5 filter plugin SZ3 fails to build under windows with failure at linking time unless that extern "C" block is added.
This commit is contained in:
parent
c1c131260a
commit
281984b3e3
@ -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) */
|
||||
|
Loading…
Reference in New Issue
Block a user