OSDN Git Service

* intrinsics/c99_functions.c, intrinsics/eoshift0.c,
[pf3gnuchains/gcc-fork.git] / libgfortran / intrinsics / c99_functions.c
index eb805c3..617e0d5 100644 (file)
@@ -245,7 +245,16 @@ nextafterf(float x, float y)
 }
 #endif
 
-/* Note that if HAVE_FPCLASSIFY is not defined, then NaN is not handled */
+
+#ifndef HAVE_POWF
+float
+powf(float x, float y)
+{
+  return (float) pow(x, y);
+}
+#endif
+
+/* Note that if fpclassify is not defined, then NaN is not handled */
 
 /* Algorithm by Steven G. Kargl.  */
 
@@ -257,7 +266,7 @@ double
 round(double x)
 {
    double t;
-#ifdef HAVE_FPCLASSIFY
+#if defined(fpclassify)
    int i;
    i = fpclassify(x);
    if (i == FP_INFINITE || i == FP_NAN)
@@ -289,7 +298,7 @@ float
 roundf(float x)
 {
    float t;
-#ifdef HAVE_FPCLASSIFY
+#if defined(fpclassify)
    int i;
 
    i = fpclassify(x);
@@ -313,4 +322,3 @@ roundf(float x)
     }
 }
 #endif
-