Browse Source

declared errno

ceriel 36 years ago
parent
commit
dd864f5541
4 changed files with 6 additions and 0 deletions
  1. 2 0
      lang/cem/libcc/math/gamma.c
  2. 1 0
      lang/cem/libcc/math/j0.c
  3. 1 0
      lang/cem/libcc/math/j1.c
  4. 2 0
      lang/cem/libcc/math/jn.c

+ 2 - 0
lang/cem/libcc/math/gamma.c

@@ -10,6 +10,8 @@
 #include <math.h>
 #include <errno.h>
 
+extern int errno;
+
 static double
 smallpos_gamma(x)
 	double x;

+ 1 - 0
lang/cem/libcc/math/j0.c

@@ -10,6 +10,7 @@
 #include <math.h>
 #include <errno.h>
 
+extern int errno;
 
 static double
 P0(x)

+ 1 - 0
lang/cem/libcc/math/j1.c

@@ -10,6 +10,7 @@
 #include <math.h>
 #include <errno.h>
 
+extern int errno;
 
 static double
 P1(x)

+ 2 - 0
lang/cem/libcc/math/jn.c

@@ -10,6 +10,8 @@
 #include <math.h>
 #include <errno.h>
 
+extern int errno;
+
 double
 yn(n, x)
 	double x;