* doprnt.c (SIZE_MAX): Move defn after all includes, as they might #define it.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 28 Apr 2011 20:11:17 +0000 (13:11 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 28 Apr 2011 20:11:17 +0000 (13:11 -0700)
src/ChangeLog
src/doprnt.c

index 14727d4..832c8ab 100644 (file)
@@ -1,6 +1,7 @@
 2011-04-28  Paul Eggert  <eggert@cs.ucla.edu>
 
        * 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  <lekktu@gmail.com>
 
index eac1796..db0b66c 100644 (file)
@@ -111,9 +111,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #include <unistd.h>
 
 #include <limits.h>
-#ifndef SIZE_MAX
-# define SIZE_MAX ((size_t) -1)
-#endif
 
 #include "lisp.h"
 
@@ -122,6 +119,10 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
    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