- Define CGAL_IA_STOP_COMPILER_OPT() for all compilers.

This commit is contained in:
Sylvain Pion 1999-10-13 17:30:18 +00:00
parent 2fc70cbb93
commit ea189bdcdb
1 changed files with 2 additions and 2 deletions

View File

@ -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)