diff options
author | Richard Levitte <levitte@openssl.org> | 2004-07-08 08:32:48 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2004-07-08 08:32:48 +0000 |
commit | dc56eb507997848532be954a658e3a6136e908a3 (patch) | |
tree | 1b76d1dd10884424daf8719edcc7eb399670ca50 /crypto/o_str.c | |
parent | 637ff35ef6a545c1e6caf4c6675bf2e1ee33da99 (diff) |
o_str.c: Windows doesn't have <strings.h>, and since we use _strnicmp() and
_stricmp() on that platform, use the appropriate header file for it,
<string.h>.
o_str.h: we only want to get size_t, which is defined in <stddef.h>.
Philippe Bougeret <philippe.bougeret@freesbee.fr> notified us about Windows
not having a <strings.h>
Diffstat (limited to 'crypto/o_str.c')
-rw-r--r-- | crypto/o_str.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crypto/o_str.c b/crypto/o_str.c index 42b25d078f..7189d13352 100644 --- a/crypto/o_str.c +++ b/crypto/o_str.c @@ -57,9 +57,13 @@ */ #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 |