X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fcbrtf.c;h=a4d4d2c1b7e7c841033c952e6df91ac0bfccea72;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=6320d0e6bca7a628e825f4d838f463ae000f1c38;hpb=af95cd82312c495ebe5336adf88c882ca7c0fc7f;p=gnulib.git diff --git a/lib/cbrtf.c b/lib/cbrtf.c index 6320d0e6b..a4d4d2c1b 100644 --- a/lib/cbrtf.c +++ b/lib/cbrtf.c @@ -1,5 +1,5 @@ /* Compute cubic root of float value. - Copyright (C) 1997, 2012 Free Software Foundation, Inc. + Copyright (C) 1997, 2012-2014 Free Software Foundation, Inc. Contributed by Dirk Alboth and Ulrich Drepper , 1997. @@ -22,6 +22,12 @@ /* Specification. */ #include +/* 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 + /* Code based on glibc/sysdeps/ieee754/flt-32/s_cbrtf.c. */ #define CBRT2 1.2599210498948731648 /* 2^(1/3) */