jim 2002/06/17 19:07:00
Modified: src/ap ap_strtol.c
Log:
Just in case, handle LONG_* if limits doesn't have 'em
Revision Changes Path
1.4 +6 -0 apache-1.3/src/ap/ap_strtol.c
Index: ap_strtol.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/ap/ap_strtol.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ap_strtol.c 18 Jun 2002 01:19:46 -0000 1.3
+++ ap_strtol.c 18 Jun 2002 02:07:00 -0000 1.4
@@ -94,6 +94,12 @@
#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.
|