Windows does not know of strigs.h or strcasecmp, so when in Windows,
authorRichard Levitte <levitte@openssl.org>
Thu, 22 Feb 2001 14:21:06 +0000 (14:21 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 22 Feb 2001 14:21:06 +0000 (14:21 +0000)
make strcasecmp a macro to _stricmp.

apps/apps.c
apps/ca.c

index 4cb2a72f455d40e5f2f5f999412df484a5b9453a..c2633b21e2247959c06797cbadc043a3a1786654 100644 (file)
@@ -59,7 +59,6 @@
 #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
index 5d5041fb9e014e8252f05fda40594e58b450e386..d13b08f7e3581a26e9b4a4b532540d6dfbe4f561 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -61,7 +61,6 @@
 #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)