changeset 2781:fde05936aebb

* lread.c, data.c: If STDC_HEADERS is #defined, include <stdlib.h> to get the extern declarations for atof. That's where it is in POSIX.
author Jim Blandy <jimb@redhat.com>
date Fri, 14 May 1993 14:42:01 +0000
parents cfe7659bbc05
children 683f4472f1c8
files src/data.c src/lread.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/data.c	Fri May 14 14:41:36 1993 +0000
+++ b/src/data.c	Fri May 14 14:42:01 1993 +0000
@@ -31,6 +31,9 @@
 #include "syssignal.h"
 
 #ifdef LISP_FLOAT_TYPE
+#ifdef STDC_HEADERS
+#include <stdlib.h>
+#endif
 #include <math.h>
 #endif /* LISP_FLOAT_TYPE */
 
--- a/src/lread.c	Fri May 14 14:41:36 1993 +0000
+++ b/src/lread.c	Fri May 14 14:42:01 1993 +0000
@@ -45,6 +45,9 @@
 #endif
 
 #ifdef LISP_FLOAT_TYPE
+#ifdef STDC_HEADERS
+#include <stdlib.h>
+#endif
 #include <math.h>
 #endif /* LISP_FLOAT_TYPE */