diff options
| author | Dan Nicolaescu | 2010-09-21 14:03:34 +0300 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-09-21 14:03:34 +0300 |
| commit | 92bc9a3678e0dbd7400067988ef0bd4410621f36 (patch) | |
| tree | 1fd7d4ff93c2d149718bc332cba1583066843939 /src | |
| parent | b0f037ed888772b7ef698c2ad5ddedf1bd7296b1 (diff) | |
| download | emacs-92bc9a3678e0dbd7400067988ef0bd4410621f36.tar.gz emacs-92bc9a3678e0dbd7400067988ef0bd4410621f36.zip | |
* src/doprnt.c: Do not include stdlib.h, config.h does it.
Move #include before macro definition.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | 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 @@ | |||
| 1 | 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * doprnt.c: Do not include stdlib.h, config.h does it. | ||
| 4 | Move #include before macro definition. | ||
| 5 | |||
| 1 | 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu> | 6 | 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 7 | ||
| 3 | * Makefile.in (temacs): Link using $(CC) not $(LD). | 8 | * 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 <http://www.gnu.org/licenses/>. */ | |||
| 33 | #include <unistd.h> | 33 | #include <unistd.h> |
| 34 | #endif | 34 | #endif |
| 35 | 35 | ||
| 36 | #ifdef HAVE_STDLIB_H | ||
| 37 | #include <stdlib.h> | ||
| 38 | #endif | ||
| 39 | |||
| 40 | #include "lisp.h" | 36 | #include "lisp.h" |
| 41 | 37 | ||
| 42 | #ifndef DBL_MAX_10_EXP | ||
| 43 | #define DBL_MAX_10_EXP 308 /* IEEE double */ | ||
| 44 | #endif | ||
| 45 | |||
| 46 | /* Since we use the macro CHAR_HEAD_P, we have to include this, but | 38 | /* Since we use the macro CHAR_HEAD_P, we have to include this, but |
| 47 | don't have to include others because CHAR_HEAD_P does not contains | 39 | don't have to include others because CHAR_HEAD_P does not contains |
| 48 | another macro. */ | 40 | another macro. */ |
| 49 | #include "character.h" | 41 | #include "character.h" |
| 50 | 42 | ||
| 43 | #ifndef DBL_MAX_10_EXP | ||
| 44 | #define DBL_MAX_10_EXP 308 /* IEEE double */ | ||
| 45 | #endif | ||
| 46 | |||
| 51 | /* Generate output from a format-spec FORMAT, | 47 | /* Generate output from a format-spec FORMAT, |
| 52 | terminated at position FORMAT_END. | 48 | terminated at position FORMAT_END. |
| 53 | Output goes in BUFFER, which has room for BUFSIZE chars. | 49 | Output goes in BUFFER, which has room for BUFSIZE chars. |