From ea189bdcdbe2f2f87f7dd88353788f282daeecc4 Mon Sep 17 00:00:00 2001 From: Sylvain Pion Date: Wed, 13 Oct 1999 17:30:18 +0000 Subject: [PATCH] - Define CGAL_IA_STOP_COMPILER_OPT() for all compilers. --- .../include/CGAL/Interval_arithmetic/_FPU.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Packages/Interval_arithmetic/include/CGAL/Interval_arithmetic/_FPU.h b/Packages/Interval_arithmetic/include/CGAL/Interval_arithmetic/_FPU.h index 9aac7f142dc..4c30b01cd98 100644 --- a/Packages/Interval_arithmetic/include/CGAL/Interval_arithmetic/_FPU.h +++ b/Packages/Interval_arithmetic/include/CGAL/Interval_arithmetic/_FPU.h @@ -33,9 +33,9 @@ #define CGAL_IA_MAX_DOUBLE (1.7976931348623157081e+308) // Macro to stop compiler optimization. -#if defined(__GNUG__) +#ifdef __GNUG__ #define CGAL_IA_STOP_COMPILER_OPT(x) ({ volatile double y=(x);double z=y;z; }) -#elif defined(_MSC_VER) +#else inline double cgal_ia_force_to_double(const double x) { volatile double e = x; return e; } #define CGAL_IA_STOP_COMPILER_OPT(x) cgal_ia_force_to_double(x)