diff options
author | Richard Levitte <levitte@openssl.org> | 2001-02-22 14:21:06 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2001-02-22 14:21:06 +0000 |
commit | 19f2192136f90752bb3fbec986733f609eb13074 (patch) | |
tree | ea19be00338c85f89efd9e11fe68918012f3d371 /apps | |
parent | 1961b327eb0e019cedd48c6b2f907ff6c2e3ad17 (diff) |
Windows does not know of strigs.h or strcasecmp, so when in Windows,
make strcasecmp a macro to _stricmp.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/apps.c | 7 | ||||
-rw-r--r-- | 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 <stdio.h> #include <stdlib.h> #include <string.h> -#include <strings.h> #include <sys/types.h> #include <sys/stat.h> #define NON_MAIN @@ -72,6 +71,12 @@ #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 @@ -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> @@ -79,6 +78,12 @@ #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) |