This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

missing prototype for abs()


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>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]