X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-floorf2.c;h=beaf70bb9453d52178b82219109ca81c9fe3ce79;hb=a267084c257281d28b35319f6b56b75f2777a493;hp=b7f18a84fb0db2e0353e0f9552cd367485a84484;hpb=9ca8092d849ed03418229af9a2aefdf784fd4db9;p=gnulib.git diff --git a/tests/test-floorf2.c b/tests/test-floorf2.c index b7f18a84f..beaf70bb9 100644 --- a/tests/test-floorf2.c +++ b/tests/test-floorf2.c @@ -1,5 +1,5 @@ /* Test of rounding towards negative infinity. - Copyright (C) 2007-2010 Free Software Foundation, Inc. + Copyright (C) 2007-2012 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 "isnanf-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. */