diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2011-08-04 15:21:15 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2011-08-04 15:21:15 (GMT) |
commit | 5f232b2c91b9eb7f365da3aeb923b3bb4cbab19f (patch) | |
tree | ca19f151ca1b7217b57a98219060ac040e8fc57e /src/H5private.h | |
parent | 4eb2b767378b36cb58c8ab212ea169a0ae017013 (diff) | |
download | hdf5-5f232b2c91b9eb7f365da3aeb923b3bb4cbab19f.zip hdf5-5f232b2c91b9eb7f365da3aeb923b3bb4cbab19f.tar.gz hdf5-5f232b2c91b9eb7f365da3aeb923b3bb4cbab19f.tar.bz2 |
[svn-r21171] Commit HDFFV-5929 winthreads define fix
Change reference of generated executables in src and fortran/src to use $<TARGETFILE:xxx> format.
Tested: local linux
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/H5private.h b/src/H5private.h index 9978cd1..d87ad90 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -30,11 +30,17 @@ /* include the pthread header */ #ifdef H5_HAVE_THREADSAFE + #ifdef _WIN32 + #ifndef H5_HAVE_WIN_THREADS #ifdef H5_HAVE_PTHREAD_H #include <pthread.h> -#else /* H5_HAVE_PTHREAD_H */ -#define H5_HAVE_WIN_THREADS #endif /* H5_HAVE_PTHREAD_H */ + #endif /* H5_HAVE_WIN_THREADS */ + #else /* _WIN32 */ + #ifdef H5_HAVE_PTHREAD_H + #include <pthread.h> + #endif /* H5_HAVE_PTHREAD_H */ + #endif /* _WIN32 */ #endif /* H5_HAVE_THREADSAFE */ /* |