# HG changeset patch # User Dan Nicolaescu # Date 1285067014 -10800 # Node ID 7ea64e427cb0143b989d752735b3629b97bc0f83 # Parent 6a4fac654761b3fa425734c8e7c3163a0265f7b6 * src/doprnt.c: Do not include stdlib.h, config.h does it. Move #include before macro definition. diff -r 6a4fac654761 -r 7ea64e427cb0 src/ChangeLog --- a/src/ChangeLog Tue Sep 21 10:35:18 2010 +0200 +++ b/src/ChangeLog Tue Sep 21 14:03:34 2010 +0300 @@ -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 -r 6a4fac654761 -r 7ea64e427cb0 src/doprnt.c --- a/src/doprnt.c Tue Sep 21 10:35:18 2010 +0200 +++ b/src/doprnt.c Tue Sep 21 14:03:34 2010 +0300 @@ -33,21 +33,17 @@ #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.