summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2016-07-27 16:56:42 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2016-07-27 16:56:42 (GMT)
commitfaea627254f89a8d2209ddf04870ed4b9def47f8 (patch)
tree01f3a3f898067c3264b7ba780aa9bc43ccb728d5 /src
parent4af66b09e03af4e9b0b6a1293dfe746f48106aba (diff)
downloadhdf5-faea627254f89a8d2209ddf04870ed4b9def47f8.zip
hdf5-faea627254f89a8d2209ddf04870ed4b9def47f8.tar.gz
hdf5-faea627254f89a8d2209ddf04870ed4b9def47f8.tar.bz2
[svn-r30224] Added HDprintf() macro that uses HDfprintf w/ stdout.
Tested on: 64-bit Ubuntu Linux 16.04 LTS w/ gcc 5.4.0 Autotools serial
Diffstat (limited to 'src')
-rw-r--r--src/H5private.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 6a677bb..4c40965 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -1142,7 +1142,9 @@ typedef off_t h5_stat_size_t;
#ifndef HDpowf
#define HDpowf(X,Y) powf(X,Y)
#endif /* HDpowf */
-/* printf() variable arguments */
+#ifndef HDprintf
+ #define HDprintf(...) HDfprintf(stdout, __VA_ARGS__)
+#endif /* HDprintf */
#ifndef HDputc
#define HDputc(C,F) putc(C,F)
#endif /* HDputc*/