X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fcbrtf.c;h=34d6338498c837a53f8ae82f3829b4bef800dfc2;hb=843f36dd9708aec052ed2410232b57048201ba61;hp=6320d0e6bca7a628e825f4d838f463ae000f1c38;hpb=844a4da8483610b921cb017679848ceaf47a7b2e;p=gnulib.git diff --git a/lib/cbrtf.c b/lib/cbrtf.c index 6320d0e6b..34d633849 100644 --- a/lib/cbrtf.c +++ b/lib/cbrtf.c @@ -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) */