projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
o_str.c: Windows doesn't have <strings.h>, and since we use _strnicmp() and
[openssl.git]
/
crypto
/
o_str.c
diff --git
a/crypto/o_str.c
b/crypto/o_str.c
index 0bdfb40076baed71f89bffe05dec677da0c7f94b..7189d13352ee17cd8ff5ac213c98265d5f09ac06 100644
(file)
--- a/
crypto/o_str.c
+++ b/
crypto/o_str.c
@@
-57,9
+57,16
@@
*/
#include <ctype.h>
*/
#include <ctype.h>
-#include <strings.h>
-#include "o_str.h"
#include <openssl/e_os2.h>
#include <openssl/e_os2.h>
+#ifdef OPENSSL_SYS_WINDOWS
+# include <string.h>
+#else
+# include <strings.h>
+#endif
+#include "o_str.h"
+
+#undef strncasecmp
+#undef strcasecmp
int OPENSSL_strncasecmp(const char *str1, const char *str2, size_t n)
{
int OPENSSL_strncasecmp(const char *str1, const char *str2, size_t n)
{