summaryrefslogtreecommitdiffstats
path: root/tools/lib/io_timer.h
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-01-17 18:15:16 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-01-17 18:15:16 (GMT)
commitdb65d57541dd766e9912fb0698210cd76107d328 (patch)
treefcd57dfe7541f6ac22a2ab5217dcd9b7db8e92b3 /tools/lib/io_timer.h
parent1643f591d6f505bd75209d64c2aa4f4f45cee99b (diff)
downloadhdf5-db65d57541dd766e9912fb0698210cd76107d328.zip
hdf5-db65d57541dd766e9912fb0698210cd76107d328.tar.gz
hdf5-db65d57541dd766e9912fb0698210cd76107d328.tar.bz2
Correct standalone function attributes
Diffstat (limited to 'tools/lib/io_timer.h')
-rw-r--r--tools/lib/io_timer.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/tools/lib/io_timer.h b/tools/lib/io_timer.h
index 1b90daf..c1fa58e 100644
--- a/tools/lib/io_timer.h
+++ b/tools/lib/io_timer.h
@@ -29,10 +29,6 @@
# include <winsock2.h>
#endif /* H5_HAVE_WINSOCK2_H */
-#ifdef STANDALONE
- #define H5TOOLS_DLL
-#endif
-
/* The different types of timers we can have */
typedef enum timer_type_ {
HDF5_FILE_OPENCLOSE,
@@ -75,10 +71,19 @@ typedef struct io_time_t {
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
+
+#ifdef STANDALONE
+io_time_t *io_time_new(clock_type t);
+void io_time_destroy(io_time_t *pt);
+io_time_t *io_time_set(io_time_t *pt, timer_type t, int start_stop);
+double io_time_get(io_time_t *pt, timer_type t);
+#else
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 *io_time_set(io_time_t *pt, timer_type t, int start_stop);
H5TOOLS_DLL double io_time_get(io_time_t *pt, timer_type t);
+#endif
+
#ifdef __cplusplus
}
#endif /* __cplusplus */