mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
mingw has str(n)casecmp() functions
This commit is contained in:
parent
3a80dc7f3e
commit
be6af69dc7
@ -211,6 +211,7 @@ typedef enum __ns_rcode {
|
|||||||
#define T_MAILA ns_t_maila
|
#define T_MAILA ns_t_maila
|
||||||
#define T_ANY ns_t_any
|
#define T_ANY ns_t_any
|
||||||
|
|
||||||
|
#ifndef __MINGW32__
|
||||||
/* protos for the functions we provide in windows_port.c */
|
/* protos for the functions we provide in windows_port.c */
|
||||||
int ares_strncasecmp(const char *s1, const char *s2, size_t n);
|
int ares_strncasecmp(const char *s1, const char *s2, size_t n);
|
||||||
int ares_strcasecmp(const char *s1, const char *s2);
|
int ares_strcasecmp(const char *s1, const char *s2);
|
||||||
@ -220,5 +221,6 @@ int ares_strcasecmp(const char *s1, const char *s2);
|
|||||||
same */
|
same */
|
||||||
#define strncasecmp(a,b,c) ares_strncasecmp(a,b,c)
|
#define strncasecmp(a,b,c) ares_strncasecmp(a,b,c)
|
||||||
#define strcasecmp(a,b) ares_strcasecmp(a,b)
|
#define strcasecmp(a,b) ares_strcasecmp(a,b)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* ARES_NAMESER_H */
|
#endif /* ARES_NAMESER_H */
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#include "nameser.h"
|
#include "nameser.h"
|
||||||
|
|
||||||
|
#ifndef __MINGW32__
|
||||||
int
|
int
|
||||||
ares_strncasecmp(const char *a, const char *b, size_t n)
|
ares_strncasecmp(const char *a, const char *b, size_t n)
|
||||||
{
|
{
|
||||||
@ -23,6 +24,7 @@ ares_strcasecmp(const char *a, const char *b)
|
|||||||
{
|
{
|
||||||
return strncasecmp(a, b, strlen(a)+1);
|
return strncasecmp(a, b, strlen(a)+1);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
ares_gettimeofday(struct timeval *tv, struct timezone *tz)
|
ares_gettimeofday(struct timeval *tv, struct timezone *tz)
|
||||||
|
Loading…
Reference in New Issue
Block a user