summaryrefslogtreecommitdiffstats
path: root/tools/h5dump
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2011-09-13 15:55:19 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2011-09-13 15:55:19 (GMT)
commit9e56bed5e0921e0d1399325eaf5f092d1f19590a (patch)
tree2952e9c97610e5bbd6896c173b19e02d83f063d4 /tools/h5dump
parent9115bab9e36d72bb395820e38b6bee4c99dcd78c (diff)
downloadhdf5-9e56bed5e0921e0d1399325eaf5f092d1f19590a.zip
hdf5-9e56bed5e0921e0d1399325eaf5f092d1f19590a.tar.gz
hdf5-9e56bed5e0921e0d1399325eaf5f092d1f19590a.tar.bz2
[svn-r21379] The tools used "%hhd" to print signed char. But VMS doesn't know it. So I used H5_VMS to have a different way ("%hd") to print it.
Tested on jam and VMS.
Diffstat (limited to 'tools/h5dump')
-rw-r--r--tools/h5dump/h5dump.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c
index 17dba83..147f6ab 100644
--- a/tools/h5dump/h5dump.c
+++ b/tools/h5dump/h5dump.c
@@ -144,7 +144,11 @@ static h5tool_format_t dataformat = {
"", /*fmt_raw */
"%d", /*fmt_int */
"%u", /*fmt_uint */
- "%hhd", /*fmt_schar */
+#ifdef H5_VMS
+ "%hd", /*fmt_schar */
+#else
+ "%hhd", /*fmt_schar */
+#endif
"%u", /*fmt_uchar */
"%d", /*fmt_short */
"%u", /*fmt_ushort */
@@ -228,7 +232,11 @@ static h5tool_format_t xml_dataformat = {
"", /*fmt_raw */
"%d", /*fmt_int */
"%u", /*fmt_uint */
- "%hhd", /*fmt_schar */
+#ifdef H5_VMS
+ "%hd", /*fmt_schar */
+#else
+ "%hhd", /*fmt_schar */
+#endif
"%u", /*fmt_uchar */
"%d", /*fmt_short */
"%u", /*fmt_ushort */