diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2011-09-13 15:45:34 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2011-09-13 15:45:34 (GMT) |
commit | 64b1807783208d620e23edf10504cc15d84a4129 (patch) | |
tree | 317b8154525e592f6e7d1bca8d7c41a7de5534a2 /tools/h5dump | |
parent | 645fae330db34b49ed06d75fef0a1b680821a906 (diff) | |
download | hdf5-64b1807783208d620e23edf10504cc15d84a4129.zip hdf5-64b1807783208d620e23edf10504cc15d84a4129.tar.gz hdf5-64b1807783208d620e23edf10504cc15d84a4129.tar.bz2 |
[svn-r21378] 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. Not tested on VMS yet. Simple change.
Diffstat (limited to 'tools/h5dump')
-rw-r--r-- | tools/h5dump/h5dump.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c index 968656a..268824a 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 */ |