From: Paul Eggert Date: Thu, 28 Apr 2011 20:11:17 +0000 (-0700) Subject: * doprnt.c (SIZE_MAX): Move defn after all includes, as they might #define it. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~180^2~3 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=283cdbef2afe17fc83d93886ac8c47c5222c4ee2;p=emacs.git * doprnt.c (SIZE_MAX): Move defn after all includes, as they might #define it. --- diff --git a/src/ChangeLog b/src/ChangeLog index 14727d403c2..832c8abfdcc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,6 +1,7 @@ 2011-04-28 Paul Eggert * doprnt.c (doprnt): Omit useless test; int overflow check (Bug#8545). + (SIZE_MAX): Move defn after all includes, as they might #define it. 2011-04-28 Juanma Barranquero 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 . */ #include #include -#ifndef SIZE_MAX -# define SIZE_MAX ((size_t) -1) -#endif #include "lisp.h" @@ -122,6 +119,10 @@ along with GNU Emacs. If not, see . */ another macro. */ #include "character.h" +#ifndef SIZE_MAX +# define SIZE_MAX ((size_t) -1) +#endif + #ifndef DBL_MAX_10_EXP #define DBL_MAX_10_EXP 308 /* IEEE double */ #endif