aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog1
-rw-r--r--src/doprnt.c7
2 files changed, 5 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 14727d403c2..832c8abfdcc 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,6 +1,7 @@
12011-04-28 Paul Eggert <eggert@cs.ucla.edu> 12011-04-28 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * doprnt.c (doprnt): Omit useless test; int overflow check (Bug#8545). 3 * doprnt.c (doprnt): Omit useless test; int overflow check (Bug#8545).
4 (SIZE_MAX): Move defn after all includes, as they might #define it.
4 5
52011-04-28 Juanma Barranquero <lekktu@gmail.com> 62011-04-28 Juanma Barranquero <lekktu@gmail.com>
6 7
diff --git a/src/doprnt.c b/src/doprnt.c
index eac1796c496..db0b66c3aa2 100644
--- a/src/doprnt.c
+++ b/src/doprnt.c
@@ -111,9 +111,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
111#include <unistd.h> 111#include <unistd.h>
112 112
113#include <limits.h> 113#include <limits.h>
114#ifndef SIZE_MAX
115# define SIZE_MAX ((size_t) -1)
116#endif
117 114
118#include "lisp.h" 115#include "lisp.h"
119 116
@@ -122,6 +119,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
122 another macro. */ 119 another macro. */
123#include "character.h" 120#include "character.h"
124 121
122#ifndef SIZE_MAX
123# define SIZE_MAX ((size_t) -1)
124#endif
125
125#ifndef DBL_MAX_10_EXP 126#ifndef DBL_MAX_10_EXP
126#define DBL_MAX_10_EXP 308 /* IEEE double */ 127#define DBL_MAX_10_EXP 308 /* IEEE double */
127#endif 128#endif