summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-05-14 14:42:01 +0000
committerJim Blandy <jimb@redhat.com>1993-05-14 14:42:01 +0000
commitefa6962c19ae6fb83ee591b7118fb7762921087d (patch)
tree6d9644b9be21286e10f049ce6d28994bd4d798aa /src
parenta3b6c0dd39ce4869d85e39c96d0c1ffbf748d5f5 (diff)
downloademacs-efa6962c19ae6fb83ee591b7118fb7762921087d.tar.gz
* 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.
Diffstat (limited to 'src')
-rw-r--r--src/data.c3
-rw-r--r--src/lread.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/data.c b/src/data.c
index c4473c8cbd3..db726c0f8b2 100644
--- a/src/data.c
+++ b/src/data.c
@@ -31,6 +31,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "syssignal.h"
#ifdef LISP_FLOAT_TYPE
+#ifdef STDC_HEADERS
+#include <stdlib.h>
+#endif
#include <math.h>
#endif /* LISP_FLOAT_TYPE */
diff --git a/src/lread.c b/src/lread.c
index 8615288f06b..aa211716a0a 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -45,6 +45,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#endif
#ifdef LISP_FLOAT_TYPE
+#ifdef STDC_HEADERS
+#include <stdlib.h>
+#endif
#include <math.h>
#endif /* LISP_FLOAT_TYPE */