mirror of
https://frontier.innolan.net/rainlance/c-ares.git
synced 2025-10-06 09:29:35 +00:00
rearrange to allow internal/private use of ares_strcasecmp to any system that
lacks the strcasecmp function.
This commit is contained in:
15
adig.c
15
adig.c
@ -50,6 +50,21 @@
|
||||
#include "inet_ntop.h"
|
||||
#include "ares_getopt.h"
|
||||
|
||||
#ifndef HAVE_STRDUP
|
||||
# include "ares_strdup.h"
|
||||
# define strdup(ptr) ares_strdup(ptr)
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRCASECMP
|
||||
# include "ares_strcasecmp.h"
|
||||
# define strcasecmp(p1,p2) ares_strcasecmp(p1,p2)
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRNCASECMP
|
||||
# include "ares_strcasecmp.h"
|
||||
# define strncasecmp(p1,p2,n) ares_strncasecmp(p1,p2,n)
|
||||
#endif
|
||||
|
||||
#ifdef WATT32
|
||||
#undef WIN32 /* Redefined in MingW headers */
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user