Avoid compilation errors with MSVC option -fp:strict.
[gnulib.git] / tests / test-trunc2.c
index 3b15799..61f88b5 100644 (file)
 #include "minus-zero.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/trunc.c.  */