summaryrefslogtreecommitdiff
path: root/popt
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2003-01-18 19:00:07 +0000
committerWayne Davison <wayned@samba.org>2003-01-18 19:00:07 +0000
commit75fb17b891da5568773ee741ca5266edebe268c2 (patch)
tree13a5e0961bac5bda855e031ef9ff2a94645685ae /popt
parent2abbf2498fd470f91270c2c75a63fe578915f10f (diff)
downloadrsync-75fb17b891da5568773ee741ca5266edebe268c2.tar.gz
rsync-75fb17b891da5568773ee741ca5266edebe268c2.tar.bz2
rsync-75fb17b891da5568773ee741ca5266edebe268c2.zip
Define DBL_EPSILON if it doesn't exist.
Diffstat (limited to 'popt')
-rw-r--r--popt/popt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/popt/popt.c b/popt/popt.c
index c6672b7a..d17c31c6 100644
--- a/popt/popt.c
+++ b/popt/popt.c
@@ -904,6 +904,9 @@ int poptGetNextOpt(poptContext con)
if ((opt->argInfo & POPT_ARG_MASK) == POPT_ARG_DOUBLE) {
*((double *) opt->arg) = aDouble;
} else {
+#ifndef DBL_EPSILON
+#define DBL_EPSILON 2.2204460492503131e-16
+#endif
#define _ABS(a) ((((a) - 0.0) < DBL_EPSILON) ? -(a) : (a))
if ((_ABS(aDouble) - FLT_MAX) > DBL_EPSILON)
return POPT_ERROR_OVERFLOW;