From: Dan Nicolaescu Date: Tue, 21 Sep 2010 11:03:34 +0000 (+0300) Subject: * src/doprnt.c: Do not include stdlib.h, config.h does it. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~47^2~47 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=92bc9a3678e0dbd7400067988ef0bd4410621f36;p=emacs.git * src/doprnt.c: Do not include stdlib.h, config.h does it. Move #include before macro definition. --- 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.