summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-05-31 23:55:21 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-05-31 23:55:21 +0000
commite990db00b0ac11e272fdd3335a59ecebcce6433d (patch)
treeb0cbdf1975dac30971ffeb2bc36950753a0d1b3b
parent856a4af4ef9019975c2e8116f349d6368808cb9e (diff)
downloadlibapr-e990db00b0ac11e272fdd3335a59ecebcce6433d.tar.gz
The attached patch modifies include/arch/win32/apr_private.h so that on WinCE
strtol is used instead of strtoi and that APR_INT64_STRFN is not defined. PR: 39884 Submitted by: Curt Arnold <carnold@apache.org> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@543320 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--include/arch/win32/apr_private.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/arch/win32/apr_private.h b/include/arch/win32/apr_private.h
index 8bf9f38b1..e2738891b 100644
--- a/include/arch/win32/apr_private.h
+++ b/include/arch/win32/apr_private.h
@@ -143,7 +143,7 @@ APR_DECLARE_DATA int errno;
#endif
/* MSVC 7.0 introduced _strtoi64 */
-#if _MSC_VER >= 1300 && _INTEGRAL_MAX_BITS >= 64
+#if _MSC_VER >= 1300 && _INTEGRAL_MAX_BITS >= 64 && !defined(_WIN32_WCE)
#define APR_INT64_STRFN _strtoi64
#endif
@@ -154,8 +154,12 @@ APR_DECLARE_DATA int errno;
#define APR_OFF_T_STRFN apr_strtoi64
#endif
#else
+#if defined(_WIN32_WCE)
+#define APR_OFF_T_STRFN strtol
+#else
#define APR_OFF_T_STRFN strtoi
#endif
+#endif
/* used to check for DWORD overflow in 64bit compiles */
#define APR_DWORD_MAX 0xFFFFFFFFUL