Tweak to hide unused threadsafe callback in non-threadsafe builds

This commit is contained in:
Dana Robinson 2020-08-13 10:13:18 -07:00
parent e291fd31fd
commit b806f3e9ac

View File

@ -25,6 +25,8 @@
*/
#include "testhdf5.h"
#if defined(H5_HAVE_THREADSAFE) && !defined(H5_HAVE_WIN_THREADS)
static void my_errx(int, const char *, ...) H5_ATTR_FORMAT(printf, 2, 3);
static void
@ -40,8 +42,6 @@ my_errx(int code, const char *fmt, ...)
HDexit(code);
}
#if defined(H5_HAVE_THREADSAFE) && !defined(H5_HAVE_WIN_THREADS)
#if defined(H5_HAVE_DARWIN)
typedef struct _pthread_barrierattr {