diff options
author | David Young <dyoung@hdfgroup.org> | 2020-02-03 22:33:28 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:31:54 (GMT) |
commit | cc57aa73c862ad82f3f4d96f70fa5de96bcedd86 (patch) | |
tree | 960008272a99221c5b2e80ede9c18d073e1fa061 /test | |
parent | 364a27714358e0f28d92f2f0efed85ab64a9cc05 (diff) | |
download | hdf5-cc57aa73c862ad82f3f4d96f70fa5de96bcedd86.zip hdf5-cc57aa73c862ad82f3f4d96f70fa5de96bcedd86.tar.gz hdf5-cc57aa73c862ad82f3f4d96f70fa5de96bcedd86.tar.bz2 |
src/H5Eint.c: #include H5TSprivate.h for H5TS_thread_id() definitions.
test/thread_id.c: move threads_failure() inside #ifdefs.
Diffstat (limited to 'test')
-rw-r--r-- | test/thread_id.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/thread_id.c b/test/thread_id.c index 75ffe17..8f6e2d5 100644 --- a/test/thread_id.c +++ b/test/thread_id.c @@ -26,13 +26,13 @@ */ #include "testhdf5.h" +#if defined(H5_HAVE_THREADSAFE) && !defined(H5_HAVE_WIN_THREADS) + #define threads_failure(_call, _result) do { \ errx(EXIT_FAILURE, "%s.%d: " #_call ": %s", __func__, \ __LINE__, strerror(_result)); \ } while (false) -#if defined(H5_HAVE_THREADSAFE) && !defined(H5_HAVE_WIN_THREADS) - #define NTHREADS 5 static volatile bool failed = false; |