mirror of
https://frontier.innolan.net/rainlance/c-ares.git
synced 2025-10-06 05:30:08 +00:00
renamed getplatform() to ares__getplatform() to avoid namespace pollution
This commit is contained in:
@ -191,7 +191,7 @@ static int file_lookup(struct ares_addr *addr, struct hostent **host)
|
|||||||
|
|
||||||
PATH_HOSTS[0] = '\0';
|
PATH_HOSTS[0] = '\0';
|
||||||
|
|
||||||
platform = getplatform();
|
platform = ares__getplatform();
|
||||||
|
|
||||||
if (platform == WIN_NT) {
|
if (platform == WIN_NT) {
|
||||||
char tmp[MAX_PATH];
|
char tmp[MAX_PATH];
|
||||||
|
@ -349,7 +349,7 @@ static int file_lookup(const char *name, int family, struct hostent **host)
|
|||||||
|
|
||||||
PATH_HOSTS[0] = '\0';
|
PATH_HOSTS[0] = '\0';
|
||||||
|
|
||||||
platform = getplatform();
|
platform = ares__getplatform();
|
||||||
|
|
||||||
if (platform == WIN_NT) {
|
if (platform == WIN_NT) {
|
||||||
char tmp[MAX_PATH];
|
char tmp[MAX_PATH];
|
||||||
|
@ -717,7 +717,7 @@ DhcpNameServer
|
|||||||
goto okay;
|
goto okay;
|
||||||
}
|
}
|
||||||
|
|
||||||
platform = getplatform();
|
platform = ares__getplatform();
|
||||||
|
|
||||||
if (platform == WIN_NT)
|
if (platform == WIN_NT)
|
||||||
{
|
{
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#define V_PLATFORM_WIN32_NT 2
|
#define V_PLATFORM_WIN32_NT 2
|
||||||
#define V_PLATFORM_WIN32_CE 3
|
#define V_PLATFORM_WIN32_CE 3
|
||||||
|
|
||||||
win_platform getplatform(void)
|
win_platform ares__getplatform(void)
|
||||||
{
|
{
|
||||||
OSVERSIONINFOEX OsvEx;
|
OSVERSIONINFOEX OsvEx;
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ typedef enum {
|
|||||||
WIN_CE
|
WIN_CE
|
||||||
} win_platform;
|
} win_platform;
|
||||||
|
|
||||||
extern win_platform getplatform(void);
|
win_platform ares__getplatform(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user