]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Just in case, handle LONG_* if limits doesn't have 'em
authorJim Jagielski <jim@apache.org>
Tue, 18 Jun 2002 02:07:00 +0000 (02:07 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 18 Jun 2002 02:07:00 +0000 (02:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@95751 13f79535-47bb-0310-9956-ffa450edef68

src/ap/ap_strtol.c

index 39b5b819ecbf06530623a204e77be36032e25629..dfa865c4b1fd010ffadd469b4b48e130b22ef1f1 100644 (file)
 #include <stdlib.h>
 #include "ap_ctype.h"
 
+#ifndef LONG_MAX
+#define LONG_MAX  2147483647
+#endif
+#ifndef LONG_MIN
+#define LONG_MIN  (-2147483647-1)
+#endif
 
 /*
  * Convert a string to a long integer.