diff options
author | David Young <dyoung@hdfgroup.org> | 2019-10-07 17:15:40 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2019-10-07 17:15:40 (GMT) |
commit | 730b2fbcb2605ed7958dc6009105cef4548e76c9 (patch) | |
tree | 90536b8fb83704c5459867d3eb86be9e62a62601 /src/H5private.h | |
parent | 19304abb517a5258275b8d15872931677151896f (diff) | |
download | hdf5-730b2fbcb2605ed7958dc6009105cef4548e76c9.zip hdf5-730b2fbcb2605ed7958dc6009105cef4548e76c9.tar.gz hdf5-730b2fbcb2605ed7958dc6009105cef4548e76c9.tar.bz2 |
Provide the BSD `struct timespec` arithmetic macro, timespecsub().
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/H5private.h b/src/H5private.h index 8d90fdc..7f2b3a1 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -2083,16 +2083,7 @@ H5_DLL herr_t H5CX_pop(void); \ BEGIN_MPE_LOG -/* NetBSD provides these comparison macros as part of a nifty set that - * performs addition and subtraction, too. We probably should bring in - * the whole set. -DCY - */ -#if !defined(timespeccmp) -#define timespeccmp(__l, __r, __op) \ - (((__l)->tv_sec == (__r)->tv_sec) \ - ? ((__l)->tv_nsec __op (__r)->tv_nsec) \ - : ((__l)->tv_sec __op (__r)->tv_sec)) -#endif /* !defined(timespeccmp) */ +#include "H5time_private.h" /* for timespeccmp */ #define VFD_SWMR_TEST_FOR_END_OF_TICK(entering, swmr_reader_exit, err) \ /* Initialize the library */ \ |