getcwd: fix compilation on mingw64
[gnulib.git] / lib / sqrtl.c
index 2a4a8ab..299e70d 100644 (file)
@@ -1,7 +1,7 @@
 /* Emulation for sqrtl.
    Contributed by Paolo Bonzini
 
-   Copyright 2002, 2003, 2007 Free Software Foundation, Inc.
+   Copyright 2002-2003, 2007, 2009-2011 Free Software Foundation, Inc.
 
    This file is part of gnulib.
 
 #include <math.h>
 
 #include <float.h>
-#include "isnanl.h"
 
 /* A simple Newton-Raphson method. */
 long double
-sqrtl(long double x)
+sqrtl (long double x)
 {
   long double delta, y;
   int exponent;
@@ -39,7 +38,7 @@ sqrtl(long double x)
 
   /* Check for negative numbers */
   if (x < 0.0L)
-    return (long double) sqrt(-1);
+    return (long double) sqrt (-1);
 
   /* Check for zero and infinites */
   if (x + x == x)