提交 dc56eb50 编写于 作者: R Richard Levitte

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>
上级 637ff35e
......@@ -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
......
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册