diff options
author | David Young <dyoung@hdfgroup.org> | 2020-02-06 01:34:06 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-02-06 01:34:06 (GMT) |
commit | 80179b0648f1f8f538023deb0a1b405408b5b59a (patch) | |
tree | b3e4e43a721ae6b107d254b70b989bca12576af0 | |
parent | 9064ad0a2fd9d000aabd025551de8db8402faf86 (diff) | |
parent | a0a75e7b6e157b40bbe09c7955153835ce200f79 (diff) | |
download | hdf5-80179b0648f1f8f538023deb0a1b405408b5b59a.zip hdf5-80179b0648f1f8f538023deb0a1b405408b5b59a.tar.gz hdf5-80179b0648f1f8f538023deb0a1b405408b5b59a.tar.bz2 |
Merge pull request #2349 in HDFFV/hdf5 from ~DYOUNG/werror:fix_h5ts_private to develop
* commit 'a0a75e7b6e157b40bbe09c7955153835ce200f79':
If H5_HAVE_THREADSAFE is not #defined, define nothing but a stub implementation of H5TS_thread_id().
-rw-r--r-- | src/H5TSprivate.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/H5TSprivate.h b/src/H5TSprivate.h index f22ed52..887f001 100644 --- a/src/H5TSprivate.h +++ b/src/H5TSprivate.h @@ -26,6 +26,7 @@ #ifndef H5TSprivate_H_ #define H5TSprivate_H_ +#ifdef H5_HAVE_THREADSAFE /* Public headers needed by this file */ #ifdef LATER #include "H5TSpublic.h" /*Public API prototypes */ @@ -128,5 +129,11 @@ H5_DLL H5TS_thread_t H5TS_create_thread(void *(*func)(void *), H5TS_attr_t * att } #endif /* c_plusplus || __cplusplus */ +#else /* H5_HAVE_THREADSAFE */ + +#define H5TS_thread_id() ((uint64_t)0) + +#endif /* H5_HAVE_THREADSAFE */ + #endif /* H5TSprivate_H_ */ |