o_str.c: Windows doesn't have <strings.h>, and since we use _strnicmp() and
[openssl.git] / crypto / o_str.c
index 0bdfb40076baed71f89bffe05dec677da0c7f94b..7189d13352ee17cd8ff5ac213c98265d5f09ac06 100644 (file)
  */
 
 #include <ctype.h>
-#include <strings.h>
-#include "o_str.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)
        {