From a7dd25be55a2f0e2e528cc9b1e320b0293821425 Mon Sep 17 00:00:00 2001 From: David Young Date: Wed, 5 Feb 2020 16:47:55 -0600 Subject: If H5_HAVE_THREADSAFE is not #defined, define nothing but a stub implementation of H5TS_thread_id(). --- src/H5TSprivate.h | 7 +++++++ 1 file changed, 7 insertions(+) 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_ */ -- cgit v0.12