diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2015-01-05 21:47:34 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2015-01-05 21:47:34 (GMT) |
commit | 6a982a7690c7fbb9a714471673f008a0476a0f44 (patch) | |
tree | d37fb0037b983f32787b82a71ded6b698030a9a0 /tools/lib/io_timer.h | |
parent | 671006a10da51ff3e174065fdf853af5a661788c (diff) | |
download | hdf5-6a982a7690c7fbb9a714471673f008a0476a0f44.zip hdf5-6a982a7690c7fbb9a714471673f008a0476a0f44.tar.gz hdf5-6a982a7690c7fbb9a714471673f008a0476a0f44.tar.bz2 |
[svn-r25954] HDFFV-9046: reorganize hdf5/perform, step 2
Last changes had caused problems with Windows platform:
1. H5private.h in io_timer.h is not accessible in the distributed shared library of tools.
Need to move it to io_timer.c.
2. debug_start_stop_time() would not be available outside of h5perf. Some favor of compiler
does not like it. Screened it out for now.
3. mere "extern" is not good enough for Windows shared library. Must mark them as DLL. Need to mark them as
"H5TOOLS_DLL".
4. STANDALONE mode is broken. Screened out the code for now.
Tested; h5committest.
Diffstat (limited to 'tools/lib/io_timer.h')
-rw-r--r-- | tools/lib/io_timer.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/lib/io_timer.h b/tools/lib/io_timer.h index 71738bf..4ce0733 100644 --- a/tools/lib/io_timer.h +++ b/tools/lib/io_timer.h @@ -17,7 +17,6 @@ #define IO_TIMER__ #include "hdf5.h" -#include "H5private.h" #if defined(H5_TIME_WITH_SYS_TIME) # include <sys/time.h> @@ -73,10 +72,10 @@ typedef struct io_time_t { #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ -extern io_time_t *io_time_new(clock_type t); -extern void io_time_destroy(io_time_t *pt); -extern io_time_t *set_time(io_time_t *pt, timer_type t, int start_stop); -extern double get_time(io_time_t *pt, timer_type t); +H5TOOLS_DLL io_time_t *io_time_new(clock_type t); +H5TOOLS_DLL void io_time_destroy(io_time_t *pt); +H5TOOLS_DLL io_time_t *set_time(io_time_t *pt, timer_type t, int start_stop); +H5TOOLS_DLL double get_time(io_time_t *pt, timer_type t); #ifdef __cplusplus } #endif /* __cplusplus */ |