summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-04-17 17:16:15 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-04-17 17:16:15 (GMT)
commit9c38fa3e320e7adcefa8c6a06a740b868e014e6b (patch)
treeb90727ac64fd5101d82e723c38337af9def77989 /src
parent4ff7021a37dceb46e2797d97d10a5a1cff00b3cf (diff)
downloadhdf5-9c38fa3e320e7adcefa8c6a06a740b868e014e6b.zip
hdf5-9c38fa3e320e7adcefa8c6a06a740b868e014e6b.tar.gz
hdf5-9c38fa3e320e7adcefa8c6a06a740b868e014e6b.tar.bz2
[svn-r8369] 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h
index be2c668..c37decd 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -578,6 +578,8 @@ H5_DLL void H5_bandwidth(char *buf/*out*/, double nbytes, double nseconds);
#endif /* __MWERKS __ */
#define HDexp(X) exp(X)
#define HDfabs(X) fabs(X)
+#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)