diff options
| author | Brent Cook <busterb@gmail.com> | 2014-07-10 22:06:10 -0500 |
|---|---|---|
| committer | Brent Cook <bcook@openbsd.org> | 2015-07-21 12:08:18 -0500 |
| commit | 5d8a1cf7155130bd8101090d7e1d0c2f90d9b123 (patch) | |
| tree | 286f7d12e3647f94bd1e6e8e180a4bf6215a0740 /libtls-standalone/include | |
| parent | 7a4a37cf596697ae96eeb1c555989e6d1a443187 (diff) | |
| download | portable-5d8a1cf7155130bd8101090d7e1d0c2f90d9b123.tar.gz portable-5d8a1cf7155130bd8101090d7e1d0c2f90d9b123.tar.bz2 portable-5d8a1cf7155130bd8101090d7e1d0c2f90d9b123.zip | |
add initial CMake and Visual Studio build support
This moves the compatibility include files from include to
include/compat so we can use the awful MS C compiler
<../include/> trick to emulate the GNU #include_next extension.
This also removes a few old compat files we do not need anymore.
Diffstat (limited to 'libtls-standalone/include')
| -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 |
