X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-floor2.c;h=978d89ced538872d76d0a1243d4c16fc3e9811f2;hb=2b7c2713dc823b924ec88f481be1671bf53b6da3;hp=971f24a3e318ea3f6e30a4ee48668bf9d2e413ac;hpb=7c98a69028588fa133a9ea1b1fdae8e121b06f9d;p=gnulib.git diff --git a/tests/test-floor2.c b/tests/test-floor2.c index 971f24a3e..978d89ced 100644 --- a/tests/test-floor2.c +++ b/tests/test-floor2.c @@ -1,5 +1,5 @@ /* Test of rounding towards negative infinity. - Copyright (C) 2007-2010 Free Software Foundation, Inc. + Copyright (C) 2007-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -31,6 +31,12 @@ #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. */