summaryrefslogtreecommitdiff
path: root/include/apr_general.h
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-06-09 21:19:50 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-06-09 21:19:50 +0000
commit2b8c8f9caa6545f19e10dfd3b2a93c8150ce88c4 (patch)
tree7e55960f712454ad6e4fc5f9de71f43f7c499770 /include/apr_general.h
parent4fdc5ad1f80e77202a3a542ac0a65e69bfed67f5 (diff)
downloadlibapr-2b8c8f9caa6545f19e10dfd3b2a93c8150ce88c4.tar.gz
Remove a bunch of string functions from Apache. These are basically
standard string functions like strstr, strcasecmp, etc that Apache used to define for platforms that don't have them. These functions and the feature tests have moved down to APR where they really belong. In doing this, I am also able to remove a bunch of tests from the Apache configure process. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60155 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_general.h')
-rw-r--r--include/apr_general.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/apr_general.h b/include/apr_general.h
index 6d8917599..f25079e15 100644
--- a/include/apr_general.h
+++ b/include/apr_general.h
@@ -215,6 +215,22 @@ typedef int ap_signum_t;
#define XtOffsetOf(s_type,field) XtOffset(s_type*,field)
#endif
+/* A couple of prototypes for functions in case some platform doesn't
+ * have it
+ */
+#if (!APR_HAVE_STRCASECMP) && (APR_HAVE_STRICMP)
+#define strcasecmp(s1, s2) stricmp(s1, s2)
+#elif (!APR_HAVE_STRCASECMP)
+int strcasecmp(const char *a, const char *b);
+#endif
+
+#if (!APR_HAVE_STRNCASECMP) && (APR_HAVE_STRNICMP)
+#define strncasecmp(s1, s2) strnicmp(s1, s2)
+#elif (!APR_HAVE_STRNCASECMP)
+int strncasecmp(const char *a, const char *b, size_t n);
+#endif
+
+
#if APR_HAS_RANDOM
/*