[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] #include limts.h for ULONG_MAX

From: Joe Swatosh <joe.swatosh_at_gmail.com>
Date: Sun, 24 Mar 2013 17:01:08 -0700

While I found this issue using my very old compiler, it seems reasonable since
that is where ULONG_MAX has been defined for a long time. (Since clearly no one
else is running into this).

[[[
For those of us with somewhat deficient compilers that don't provide ULONG_MAX
unless <limits.h> is explicitly included.

 * subversion/include/svn_types.h
   (includes): Add include of limits.h
]]]

Index: subversion/include/svn_types.h
===================================================================
--- subversion/include/svn_types.h (revision 1460195)
+++ subversion/include/svn_types.h (working copy)
@@ -29,6 +29,7 @@

 /* ### this should go away, but it causes too much breakage right now */
 #include <stdlib.h>
+#include <limits.h> /* for ULONG_MAX */

 #include <apr.h> /* for apr_size_t, apr_int64_t, ... */
 #include <apr_errno.h> /* for apr_status_t */
Received on 2013-03-25 01:01:40 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.