From 5d8a1cf7155130bd8101090d7e1d0c2f90d9b123 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Thu, 10 Jul 2014 22:06:10 -0500 Subject: 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. --- libtls-standalone/include/string.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'libtls-standalone/include/string.h') 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 @@ * string.h compatibility shim */ -#include_next - #ifndef LIBCRYPTOCOMPAT_STRING_H #define LIBCRYPTOCOMPAT_STRING_H +#ifdef _MSC_VER +#include <../include/string.h> +#else +#include_next +#endif + #include #if defined(__sun) || defined(__hpux) @@ -17,6 +21,11 @@ #include #endif +#ifndef HAVE_STRCASECMP +int strcasecmp(const char *s1, const char *s2); +int strncasecmp(const char *s1, const char *s2, size_t len); +#endif + #ifndef HAVE_STRLCPY size_t strlcpy(char *dst, const char *src, size_t siz); #endif -- cgit v1.2.3-55-g6feb