X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-ceilf2.c;h=189de0f9a038b5d36d4d7e877fa06e3233ef0883;hb=25b6b5120113989e0b91de9d0b75d3d625bbc753;hp=69fdb67b1c856cc45d85acc1f629c50c260acf4b;hpb=1602f0afed21be664fcf5c42d59db07cc22c56d6;p=gnulib.git diff --git a/tests/test-ceilf2.c b/tests/test-ceilf2.c index 69fdb67b1..189de0f9a 100644 --- a/tests/test-ceilf2.c +++ b/tests/test-ceilf2.c @@ -32,6 +32,12 @@ #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/ceil.c. */