Lines 1-23
Link Here
|
1 |
--- endeavour/string.cpp.orig Tue Jan 29 17:05:25 2002 |
1 |
--- endeavour/string.cpp.orig Sat Feb 23 16:24:43 2002 |
2 |
+++ endeavour/string.cpp Tue Jan 29 17:11:26 2002 |
2 |
+++ endeavour/string.cpp Sat Feb 23 16:27:03 2002 |
3 |
@@ -35,7 +35,7 @@ |
3 |
@@ -35,7 +35,9 @@ |
4 |
#endif /* __MSW__ */ |
4 |
#endif /* __MSW__ */ |
5 |
|
5 |
|
6 |
const char *strseekblank(const char *s); |
6 |
const char *strseekblank(const char *s); |
7 |
-const char *strcasestr(const char *haystack, const char *needle); |
7 |
+#ifdef NEED_STRCASESTR |
8 |
+// const char *strcasestr(const char *haystack, const char *needle); |
8 |
const char *strcasestr(const char *haystack, const char *needle); |
|
|
9 |
+#endif |
9 |
int strpfx(const char *str, const char *pfx); |
10 |
int strpfx(const char *str, const char *pfx); |
10 |
int strcasepfx(const char *str, const char *pfx); |
11 |
int strcasepfx(const char *str, const char *pfx); |
11 |
void strtoupper(char *s); |
12 |
void strtoupper(char *s); |
12 |
@@ -219,6 +219,7 @@ |
13 |
@@ -219,6 +221,7 @@ |
13 |
* Case insensitive version of strstr(). Returns the pointer to |
14 |
* Case insensitive version of strstr(). Returns the pointer to |
14 |
* needle in haystack if found or NULL on no match. |
15 |
* needle in haystack if found or NULL on no match. |
15 |
*/ |
16 |
*/ |
16 |
+#ifndef __FreeBSD__ |
17 |
+#ifdef NEED_STRCASESTR |
17 |
const char *strcasestr(const char *haystack, const char *needle) |
18 |
const char *strcasestr(const char *haystack, const char *needle) |
18 |
{ |
19 |
{ |
19 |
const char *strptr1, *strptr2, *strptr3; |
20 |
const char *strptr1, *strptr2, *strptr3; |
20 |
@@ -276,7 +277,7 @@ |
21 |
@@ -276,7 +279,7 @@ |
21 |
|
22 |
|
22 |
return(NULL); |
23 |
return(NULL); |
23 |
} |
24 |
} |