]> granicus.if.org Git - php/commitdiff
Use log1p from the CRT
authorAnatol Belski <ab@php.net>
Fri, 17 Nov 2017 20:22:51 +0000 (21:22 +0100)
committerAnatol Belski <ab@php.net>
Fri, 17 Nov 2017 20:22:51 +0000 (21:22 +0100)
win32/build/confutils.js

index ae26fa204fa52c630112af74b6a4d5c55c610f64..b7c7075e1cdba53165662f41dbe121384a06f278 100644 (file)
@@ -2226,11 +2226,16 @@ function generate_config_h()
                outfile.WriteLine("#define " + keys[i] + " " + pieces);
        }
 
-       if (VS_TOOLSET && VCVERS >= 1800) {
-               outfile.WriteLine("");
-               outfile.WriteLine("#define HAVE_ACOSH 1");
-               outfile.WriteLine("#define HAVE_ASINH 1");
-               outfile.WriteLine("#define HAVE_ATANH 1");
+       if (VS_TOOLSET) {
+               if (VCVERS >= 1800) {
+                       outfile.WriteLine("");
+                       outfile.WriteLine("#define HAVE_ACOSH 1");
+                       outfile.WriteLine("#define HAVE_ASINH 1");
+                       outfile.WriteLine("#define HAVE_ATANH 1");
+               }
+               if (VCVERS >= 1900) {
+                       outfile.WriteLine("#define HAVE_LOG1P 1");
+               }
        }