X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fceil.c;h=c3d26c1bf27acf9d1a3d9cf2a39090b8c672c3a8;hb=66f5e6513c46dffcb40b216e3709b84ab5fbc392;hp=4e0354e1cc4c7bebaf11709537c125a4f68b869a;hpb=1ac9a623b07722e14367dac9284372881aae3934;p=gnulib.git diff --git a/lib/ceil.c b/lib/ceil.c index 4e0354e1c..c3d26c1bf 100644 --- a/lib/ceil.c +++ b/lib/ceil.c @@ -1,5 +1,5 @@ /* Round towards positive infinity. - Copyright (C) 2007, 2010-2011 Free Software Foundation, Inc. + Copyright (C) 2007, 2010-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 @@ -54,6 +54,12 @@ # define MINUS_ZERO L_(-0.0) #endif +/* 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 + /* 2^(MANT_DIG-1). */ static const DOUBLE TWO_MANT_DIG = /* Assume MANT_DIG <= 5 * 31.