summaryrefslogtreecommitdiff
path: root/src/data.c
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
commit93b9120871c50c14ed8818b380307174383c4fd6 (patch)
tree4b25699ce6919137c12f2a838485e4914b849dfc /src/data.c
parent20280af7ca3a4c80cd80cd3fd168ce09e9a6b159 (diff)
downloademacs-93b9120871c50c14ed8818b380307174383c4fd6.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/data.c')
-rw-r--r--src/data.c3
1 files changed, 3 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 */