diff options
Diffstat (limited to 'libtls-standalone/include/string.h')
-rw-r--r-- | libtls-standalone/include/string.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libtls-standalone/include/string.h b/libtls-standalone/include/string.h index 05d1ffc..eabc4c4 100644 --- a/libtls-standalone/include/string.h +++ b/libtls-standalone/include/string.h | |||
@@ -3,11 +3,15 @@ | |||
3 | * string.h compatibility shim | 3 | * string.h compatibility shim |
4 | */ | 4 | */ |
5 | 5 | ||
6 | #include_next <string.h> | ||
7 | |||
8 | #ifndef LIBCRYPTOCOMPAT_STRING_H | 6 | #ifndef LIBCRYPTOCOMPAT_STRING_H |
9 | #define LIBCRYPTOCOMPAT_STRING_H | 7 | #define LIBCRYPTOCOMPAT_STRING_H |
10 | 8 | ||
9 | #ifdef _MSC_VER | ||
10 | #include <../include/string.h> | ||
11 | #else | ||
12 | #include_next <string.h> | ||
13 | #endif | ||
14 | |||
11 | #include <sys/types.h> | 15 | #include <sys/types.h> |
12 | 16 | ||
13 | #if defined(__sun) || defined(__hpux) | 17 | #if defined(__sun) || defined(__hpux) |
@@ -17,6 +21,11 @@ | |||
17 | #include <strings.h> | 21 | #include <strings.h> |
18 | #endif | 22 | #endif |
19 | 23 | ||
24 | #ifndef HAVE_STRCASECMP | ||
25 | int strcasecmp(const char *s1, const char *s2); | ||
26 | int strncasecmp(const char *s1, const char *s2, size_t len); | ||
27 | #endif | ||
28 | |||
20 | #ifndef HAVE_STRLCPY | 29 | #ifndef HAVE_STRLCPY |
21 | size_t strlcpy(char *dst, const char *src, size_t siz); | 30 | size_t strlcpy(char *dst, const char *src, size_t siz); |
22 | #endif | 31 | #endif |