Use standard C99 isfinite, isnan, isinf in place of GSL substitutes.
[pspp-builds.git] / src / data / por-file-writer.c
index 75022ea7f6d8b924d72112e198b59d677c79e3a0..8a27f6b785ccc548d5a14436cfe221ee7476d3e6 100644 (file)
@@ -20,7 +20,6 @@
 #include <ctype.h>
 #include <errno.h>
 #include <float.h>
-#include <gsl/gsl_math.h>
 #include <math.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -778,7 +777,7 @@ format_trig_double (long double value, int base_10_precision, char output[])
      0...30**6, an invariant of the loop below. */
   errno = 0;
   base_2_sig = frexp (value, &base_2_exp);
-  if (errno != 0 || !gsl_finite (base_2_sig))
+  if (errno != 0 || !isfinite (base_2_sig))
     goto missing_value;
   if (base_2_exp == 0 && base_2_sig == 0.)
     goto zero;