From 92bc9a3678e0dbd7400067988ef0bd4410621f36 Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Tue, 21 Sep 2010 14:03:34 +0300 Subject: [PATCH] * src/doprnt.c: Do not include stdlib.h, config.h does it. Move #include before macro definition. --- src/ChangeLog | 5 +++++ src/doprnt.c | 12 ++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index a438304b93f..f44add45de0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-09-21 Dan Nicolaescu + + * doprnt.c: Do not include stdlib.h, config.h does it. + Move #include before macro definition. + 2010-09-20 Dan Nicolaescu * Makefile.in (temacs): Link using $(CC) not $(LD). diff --git a/src/doprnt.c b/src/doprnt.c index 1b45b21e36b..053fa183e6b 100644 --- a/src/doprnt.c +++ b/src/doprnt.c @@ -33,21 +33,17 @@ along with GNU Emacs. If not, see . */ #include #endif -#ifdef HAVE_STDLIB_H -#include -#endif - #include "lisp.h" -#ifndef DBL_MAX_10_EXP -#define DBL_MAX_10_EXP 308 /* IEEE double */ -#endif - /* Since we use the macro CHAR_HEAD_P, we have to include this, but don't have to include others because CHAR_HEAD_P does not contains another macro. */ #include "character.h" +#ifndef DBL_MAX_10_EXP +#define DBL_MAX_10_EXP 308 /* IEEE double */ +#endif + /* Generate output from a format-spec FORMAT, terminated at position FORMAT_END. Output goes in BUFFER, which has room for BUFSIZE chars. -- 2.39.2