X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fcbrt.c;h=f0a2093c191b5f6a98a669c3459dca5e5eed91d9;hb=43593319b31e6b0175b8eec4433bac744959822d;hp=d3659f0a6f632355dae85e7188545ab18216a48e;hpb=a0dccde75e6a3b9c930e3577fae7a5bf9351ec09;p=gnulib.git diff --git a/lib/cbrt.c b/lib/cbrt.c index d3659f0a6..f0a2093c1 100644 --- a/lib/cbrt.c +++ b/lib/cbrt.c @@ -1,5 +1,5 @@ /* Compute cubic root of double value. - Copyright (C) 1997, 2012 Free Software Foundation, Inc. + Copyright (C) 1997, 2012-2013 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/dbl-64/s_cbrt.c. */ #define CBRT2 1.2599210498948731648 /* 2^(1/3) */