diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/h5test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/h5test.c b/test/h5test.c index 6445ce6..e364d32 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -668,7 +668,9 @@ h5_show_hostname(void) } #elif defined(H5_HAVE_THREADSAFE) #ifdef _WIN32 - printf("some thread: no way to know the thread number from pthread on windows."); + /* use GetCurrentThreadId because pthread_self return cannot be cast */ + /* as an int on Windows */ + fprintf("thread %d.", (int)GetCurrentThreadId()); #else printf("thread %d.", (int)pthread_self()); #endif |