From 8dcf006fc55dcafbe88a751a2256e4fbbdb040de Mon Sep 17 00:00:00 2001 From: "pavlov%netscape.com" Date: Sun, 14 Jan 2001 06:13:17 +0000 Subject: [PATCH] ifdef undef ... endif git-svn-id: svn://10.0.0.236/trunk@84938 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/gfx2/public/nsUnitConverters.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/mozilla/gfx2/public/nsUnitConverters.h b/mozilla/gfx2/public/nsUnitConverters.h index 6e6f9d872ce..0b90b9c53b2 100644 --- a/mozilla/gfx2/public/nsUnitConverters.h +++ b/mozilla/gfx2/public/nsUnitConverters.h @@ -42,16 +42,18 @@ * @ingroup conversion_constants * @note XXX this should be derived from platform FLOAT_MIN */ -#ifndef ROUND_EXCLUSIVE_CONST_FLOAT -#define ROUND_EXCLUSIVE_CONST_FLOAT 0.499999999 +#ifdef ROUND_EXCLUSIVE_CONST_FLOAT +#undef ROUND_EXCLUSIVE_CONST_FLOAT +#define ROUND_EXCLUSIVE_CONST_FLOAT 0.499999999f #endif /** * ROUND_CONST_FLOAT * @ingroup conversion_constants */ -#ifndef ROUND_CONST_FLOAT -#define ROUND_CONST_FLOAT 0.5 +#ifdef ROUND_CONST_FLOAT +#undef ROUND_CONST_FLOAT +#define ROUND_CONST_FLOAT 0.5f #endif /** @@ -59,8 +61,9 @@ * @ingroup conversion_constants * @note XXX this should be derived from platform FLOAT_MIN */ -#ifndef CEIL_CONST_FLOAT -#define CEIL_CONST_FLOAT 0.99999999 +#ifdef CEIL_CONST_FLOAT +#undef CEIL_CONST_FLOAT +#define CEIL_CONST_FLOAT 0.99999999f #endif /**