From 19f2192136f90752bb3fbec986733f609eb13074 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 22 Feb 2001 14:21:06 +0000 Subject: [PATCH] Windows does not know of strigs.h or strcasecmp, so when in Windows, make strcasecmp a macro to _stricmp. --- apps/apps.c | 7 ++++++- apps/ca.c | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/apps/apps.c b/apps/apps.c index 4cb2a72f45..c2633b21e2 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -59,7 +59,6 @@ #include #include #include -#include #include #include #define NON_MAIN @@ -71,6 +70,12 @@ #include #include +#ifdef OPENSSL_SYS_WINDOWS +#define strcasecmp _stricmp +#else +#include +#endif + #ifdef OPENSSL_SYS_WINDOWS # include "bss_file.c" #endif diff --git a/apps/ca.c b/apps/ca.c index 5d5041fb9e..d13b08f7e3 100644 --- a/apps/ca.c +++ b/apps/ca.c @@ -61,7 +61,6 @@ #include #include #include -#include #include #include #include @@ -79,6 +78,12 @@ #include #include +#ifdef OPENSSL_SYS_WINDOWS +#define strcasecmp _stricmp +#else +#include +#endif + #ifndef W_OK # ifdef OPENSSL_SYS_VMS # if defined(__DECC) -- 2.25.1