summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-04-17 17:17:32 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-04-17 17:17:32 (GMT)
commite4d56236928b52e10a7d050388d6193c76e05e73 (patch)
tree4c84132d71189f13ec4a57c645991d7794edf799 /src
parent9e859565e49b62e4610b9340436835d6d190db34 (diff)
downloadhdf5-e4d56236928b52e10a7d050388d6193c76e05e73.zip
hdf5-e4d56236928b52e10a7d050388d6193c76e05e73.tar.gz
hdf5-e4d56236928b52e10a7d050388d6193c76e05e73.tar.bz2
[svn-r8370] Purpose:
Bug fix. Description: Not all machines (like Sun and AIX) support fabsl() and fabsf() used in test/dtypes.c. Changed the coding to use macro names HDfabsl and HDfabsf. Also set the two macros to use ABS for now so that they will work for all machines. (need more portable fixes which would involve configure.) Platforms tested: h5committested. (also tested in LANL QSC and Theta).
Diffstat (limited to 'src')
-rw-r--r--src/H5private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h
index ac80564..c171363 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -579,6 +579,9 @@ H5_DLL void H5_bandwidth(char *buf/*out*/, double nbytes, double nseconds);
#endif /* __MWERKS __ */
#define HDexp(X) exp(X)
#define HDfabs(X) fabs(X)
+/* use ABS() because fabsf() fabsl() are not common yet. */
+#define HDfabsf(X) ABS(X)
+#define HDfabsl(X) ABS(X)
#define HDfclose(F) fclose(F)
/* fcntl() variable arguments */
#define HDfdopen(N,S) fdopen(N,S)