mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r16484: Bugzilla 3805. Only define _ABS if it is not already defined.
This commit is contained in:
parent
a22bf28bca
commit
09fb20f4fe
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user