From: William A. Rowe Jr Date: Tue, 18 Jun 2002 04:08:26 +0000 (+0000) Subject: We are safe. We don't need this according to MSVC docs assertions. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab1ac839f9fbc5625c7b4bfefa71edde593d4142;p=thirdparty%2Fapache%2Fhttpd.git We are safe. We don't need this according to MSVC docs assertions. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@95757 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ap/ap.dsp b/src/ap/ap.dsp index 286d6cd1449..d4ccb941e49 100644 --- a/src/ap/ap.dsp +++ b/src/ap/ap.dsp @@ -119,10 +119,6 @@ SOURCE=.\ap_slack.c SOURCE=.\ap_snprintf.c # End Source File -# Begin Source File - -SOURCE=.\ap_strtol.c -# End Source File # End Group # Begin Group "Header Files" diff --git a/src/os/win32/os.h b/src/os/win32/os.h index 442c5f5a90e..4cb1f65ff1d 100755 --- a/src/os/win32/os.h +++ b/src/os/win32/os.h @@ -172,6 +172,12 @@ every configuration function as __stdcall. #define NO_SLACK #include +/* MSVC asserts that strtol "errno is set to ERANGE + * if overflow or underflow occurs" + * Ergo we can use the library strtol safely. + */ +#define ap_strtol strtol + #define NO_OTHER_CHILD #define NO_RELIABLE_PIPED_LOGS