diff options
| author | Paul Eggert | 2011-04-28 13:11:17 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-28 13:11:17 -0700 |
| commit | 283cdbef2afe17fc83d93886ac8c47c5222c4ee2 (patch) | |
| tree | 0702b4a9c78be218b2fe7ee474a8d7591d00949a /src | |
| parent | f76dee0c23a846517e72618dec6d2424321bb32b (diff) | |
| download | emacs-283cdbef2afe17fc83d93886ac8c47c5222c4ee2.tar.gz emacs-283cdbef2afe17fc83d93886ac8c47c5222c4ee2.zip | |
* doprnt.c (SIZE_MAX): Move defn after all includes, as they might #define it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 1 | ||||
| -rw-r--r-- | src/doprnt.c | 7 |
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 @@ | |||
| 1 | 2011-04-28 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-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 | ||
| 5 | 2011-04-28 Juanma Barranquero <lekktu@gmail.com> | 6 | 2011-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 |