X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=crypto%2Fo_str.c;h=7189d13352ee17cd8ff5ac213c98265d5f09ac06;hb=abbc186bd2798afc4ad405af15d7e2668d66ef3e;hp=efe20b77a9c28191ec44ebc6982b1f1c20d77187;hpb=f0c5db92f76d5be7639f78215a2190db56111602;p=openssl.git diff --git a/crypto/o_str.c b/crypto/o_str.c index efe20b77a9..7189d13352 100644 --- a/crypto/o_str.c +++ b/crypto/o_str.c @@ -56,9 +56,17 @@ * */ -#include -#include "o_str.h" +#include #include +#ifdef OPENSSL_SYS_WINDOWS +# include +#else +# include +#endif +#include "o_str.h" + +#undef strncasecmp +#undef strcasecmp int OPENSSL_strncasecmp(const char *str1, const char *str2, size_t n) { @@ -87,7 +95,7 @@ int OPENSSL_strncasecmp(const char *str1, const char *str2, size_t n) int OPENSSL_strcasecmp(const char *str1, const char *str2) { #if defined(OPENSSL_SYS_VMS) - return OSSL_strncasecmp(str1, str2, (size_t)-1); + return OPENSSL_strncasecmp(str1, str2, (size_t)-1); #elif defined(OPENSSL_SYS_WINDOWS) return _stricmp(str1, str2); #else