missing prototype for abs()
Jes Sorensen
jes@linuxcare.com
Wed Jun 28 12:06:00 GMT 2000
Hi
The latest gcc from sourceware moans if one doesn't include stdlib.h to
get a protoytype for abs().
I wouldn't be surprised if there are other occurencies, I just noticed
this one because I also hit a compiler crash with it.
Jes
2000-06-28 Jes Sorensen <jes@linuxcare.com>
* sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
prototype for abs().
--- sysdeps/ieee754/dbl-64/e_exp.c~ Wed Jul 14 01:48:30 1999
+++ sysdeps/ieee754/dbl-64/e_exp.c Wed Jun 28 21:00:25 2000
@@ -55,6 +55,7 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
+#include <stdlib.h>
#include <float.h>
#include <ieee754.h>
#include <math.h>
More information about the Libc-hacker
mailing list