make strcasecmp a macro to _stricmp.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <strings.h>
#include <sys/types.h>
#include <sys/stat.h>
#define NON_MAIN
#include <openssl/pkcs12.h>
#include <openssl/safestack.h>
+#ifdef OPENSSL_SYS_WINDOWS
+#define strcasecmp _stricmp
+#else
+#include <strings.h>
+#endif
+
#ifdef OPENSSL_SYS_WINDOWS
# include "bss_file.c"
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <strings.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <openssl/pem.h>
#include <openssl/engine.h>
+#ifdef OPENSSL_SYS_WINDOWS
+#define strcasecmp _stricmp
+#else
+#include <strings.h>
+#endif
+
#ifndef W_OK
# ifdef OPENSSL_SYS_VMS
# if defined(__DECC)