Avoid compilation errors with MSVC option -fp:strict.
[gnulib.git] / tests / test-floor2.c
index 292fbc5..19e5ab1 100644 (file)
 #include "isnand-nolibm.h"
 #include "macros.h"
 
+/* MSVC with option -fp:strict refuses to compile constant initializers that
+   contain floating-point operations.  Pacify this compiler.  */
+#ifdef _MSC_VER
+# pragma fenv_access (off)
+#endif
+
 
 /* The reference implementation, taken from lib/floor.c.  */