projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid macro redefinition warnings.
[gnulib.git]
/
lib
/
round.c
diff --git
a/lib/round.c
b/lib/round.c
index
5758fb7
..
df6232d
100644
(file)
--- a/
lib/round.c
+++ b/
lib/round.c
@@
-30,7
+30,7
@@
# define DOUBLE long double
# define MANT_DIG LDBL_MANT_DIG
# define L_(literal) literal##L
# define DOUBLE long double
# define MANT_DIG LDBL_MANT_DIG
# define L_(literal) literal##L
-# define HAVE_FLOOR_AND_CEIL
(HAVE_DECL_FLOORL && HAVE_DECL_CEILL)
+# define HAVE_FLOOR_AND_CEIL
HAVE_FLOORL_AND_CEILL
#elif ! defined USE_FLOAT
# define ROUND round
# define FLOOR floor
#elif ! defined USE_FLOAT
# define ROUND round
# define FLOOR floor
@@
-46,7
+46,7
@@
# define DOUBLE float
# define MANT_DIG FLT_MANT_DIG
# define L_(literal) literal##f
# define DOUBLE float
# define MANT_DIG FLT_MANT_DIG
# define L_(literal) literal##f
-# define HAVE_FLOOR_AND_CEIL
(HAVE_DECL_FLOORF && HAVE_DECL_CEILF)
+# define HAVE_FLOOR_AND_CEIL
HAVE_FLOORF_AND_CEILF
#endif
/* If we're being included from test-round2[f].c, it already defined names for
#endif
/* If we're being included from test-round2[f].c, it already defined names for
@@
-67,7
+67,7
@@
DOUBLE
FLOOR_BASED_ROUND (DOUBLE x)
{
DOUBLE
FLOOR_BASED_ROUND (DOUBLE x)
{
- if (x >= L_(0.0))
+ if (x >= L_(0.0))
{
DOUBLE y = FLOOR (x);
if (x - y >= L_(0.5))
{
DOUBLE y = FLOOR (x);
if (x - y >= L_(0.5))