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>
This commit is contained in:
parent
637ff35ef6
commit
dc56eb5079
@ -57,9 +57,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <strings.h>
|
|
||||||
#include "o_str.h"
|
|
||||||
#include <openssl/e_os2.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 strncasecmp
|
||||||
#undef strcasecmp
|
#undef strcasecmp
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
#ifndef HEADER_O_STR_H
|
#ifndef HEADER_O_STR_H
|
||||||
#define 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_strcasecmp(const char *str1, const char *str2);
|
||||||
int OPENSSL_strncasecmp(const char *str1, const char *str2, size_t n);
|
int OPENSSL_strncasecmp(const char *str1, const char *str2, size_t n);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user