Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Added the 'p' (perishable) flag to the filter rules, as suggested
[rsync/rsync.git]
/
popt
/
popt.c
diff --git
a/popt/popt.c
b/popt/popt.c
index
9ce3b35
..
00a6027
100644
(file)
--- a/
popt/popt.c
+++ b/
popt/popt.c
@@
-18,6
+18,10
@@
#include "findme.h"
#include "poptint.h"
#include "findme.h"
#include "poptint.h"
+#ifndef DBL_EPSILON
+#define DBL_EPSILON 2.2204460492503131e-16
+#endif
+
#ifdef MYDEBUG
/*@unchecked@*/
int _popt_debug = 0;
#ifdef MYDEBUG
/*@unchecked@*/
int _popt_debug = 0;
@@
-961,10
+965,10
@@
int poptGetNextOpt(poptContext con)
if ((opt->argInfo & POPT_ARG_MASK) == POPT_ARG_DOUBLE) {
*((double *) opt->arg) = aDouble;
} else {
if ((opt->argInfo & POPT_ARG_MASK) == POPT_ARG_DOUBLE) {
*((double *) opt->arg) = aDouble;
} else {
-#define
_ABS(a)
((((a) - 0.0) < DBL_EPSILON) ? -(a) : (a))
- if ((_ABS(aDouble) - FLT_MAX) > DBL_EPSILON)
+#define
MY_ABS(a)
((((a) - 0.0) < DBL_EPSILON) ? -(a) : (a))
+ if ((
MY
_ABS(aDouble) - FLT_MAX) > DBL_EPSILON)
return POPT_ERROR_OVERFLOW;
return POPT_ERROR_OVERFLOW;
- if ((FLT_MIN - _ABS(aDouble)) > DBL_EPSILON)
+ if ((FLT_MIN -
MY
_ABS(aDouble)) > DBL_EPSILON)
return POPT_ERROR_OVERFLOW;
*((float *) opt->arg) = aDouble;
}
return POPT_ERROR_OVERFLOW;
*((float *) opt->arg) = aDouble;
}