Commit dc56eb50 authored by Richard Levitte's avatar Richard Levitte
Browse files

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>
parent 637ff35e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -57,9 +57,13 @@
 */

#include <ctype.h>
#include <openssl/e_os2.h>
#ifdef OPENSSL_SYS_WINDOWS
# include <string.h>
#else
# include <strings.h>
#endif
#include "o_str.h"
#include <openssl/e_os2.h>

#undef strncasecmp
#undef strcasecmp
+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@
#ifndef HEADER_O_STR_H
#define HEADER_O_STR_H

#include <string.h>
#include <stddef.h>		/* to get size_t */

int OPENSSL_strcasecmp(const char *str1, const char *str2);
int OPENSSL_strncasecmp(const char *str1, const char *str2, size_t n);