diff options
author | Gerald Carter <jerry@samba.org> | 2006-06-23 12:57:19 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2006-06-23 12:57:19 +0000 |
commit | dc011315bbe007fc995dc345b477b1e6af7ae83d (patch) | |
tree | 541af71a28e80d24215c15541c32e35789ee6e71 /source/popt/popt.c | |
parent | b30020d50197ce92a9146fe90288e953369d4c22 (diff) | |
download | samba-3.0.23rc3.tar.gz |
r16485: Final changes for 3.0.23rc3 (pulled in changes up to SAMBA_3_0 r16484)samba-3.0.23rc3
Diffstat (limited to 'source/popt/popt.c')
-rw-r--r-- | source/popt/popt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/popt/popt.c b/source/popt/popt.c index e9c4c17de50..ce3687fb64e 100644 --- a/source/popt/popt.c +++ b/source/popt/popt.c @@ -927,7 +927,9 @@ int poptGetNextOpt(poptContext con) if ((opt->argInfo & POPT_ARG_MASK) == POPT_ARG_DOUBLE) { *((double *) opt->arg) = aDouble; } else { +#ifndef _ABS #define _ABS(a) ((((a) - 0.0) < DBL_EPSILON) ? -(a) : (a)) +#endif if ((_ABS(aDouble) - FLT_MAX) > DBL_EPSILON) return POPT_ERROR_OVERFLOW; if ((FLT_MIN - _ABS(aDouble)) > DBL_EPSILON) |