diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2011-09-13 15:55:19 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2011-09-13 15:55:19 (GMT) |
commit | 9e56bed5e0921e0d1399325eaf5f092d1f19590a (patch) | |
tree | 2952e9c97610e5bbd6896c173b19e02d83f063d4 /tools/lib/h5tools.c | |
parent | 9115bab9e36d72bb395820e38b6bee4c99dcd78c (diff) | |
download | hdf5-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/lib/h5tools.c')
-rw-r--r-- | tools/lib/h5tools.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c index 2ed13d0..db81496 100644 --- a/tools/lib/h5tools.c +++ b/tools/lib/h5tools.c @@ -52,7 +52,11 @@ static h5tool_format_t h5tools_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 */ |