summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/h5tools_utils.c')
-rw-r--r--tools/lib/h5tools_utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/lib/h5tools_utils.c b/tools/lib/h5tools_utils.c
index df12a99..a6050ca 100644
--- a/tools/lib/h5tools_utils.c
+++ b/tools/lib/h5tools_utils.c
@@ -53,8 +53,14 @@ error_msg(const char *progname, const char *fmt, ...)
va_start(ap, fmt);
fflush(stdout);
+#ifdef WIN32
+ fprintf(stdout, "%s error: ", progname);
+ vfprintf(stdout, fmt, ap);
+#else
fprintf(stderr, "%s error: ", progname);
vfprintf(stderr, fmt, ap);
+#endif
+
va_end(ap);
}