Mercurial > emacs
changeset 110459:7ea64e427cb0
* src/doprnt.c: Do not include stdlib.h, config.h does it.
Move #include before macro definition.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Tue, 21 Sep 2010 14:03:34 +0300 |
parents | 6a4fac654761 |
children | 9c07db876782 |
files | src/ChangeLog src/doprnt.c |
diffstat | 2 files changed, 9 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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 <dann@ics.uci.edu> + + * doprnt.c: Do not include stdlib.h, config.h does it. + Move #include before macro definition. + 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu> * Makefile.in (temacs): Link using $(CC) not $(LD).
--- 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 <unistd.h> #endif -#ifdef HAVE_STDLIB_H -#include <stdlib.h> -#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.