renamed getplatform() to ares__getplatform() to avoid namespace pollution
This commit is contained in:
parent
e49ce8f973
commit
5e5c0132e6
|
@ -191,7 +191,7 @@ static int file_lookup(struct ares_addr *addr, struct hostent **host)
|
|||
|
||||
PATH_HOSTS[0] = '\0';
|
||||
|
||||
platform = getplatform();
|
||||
platform = ares__getplatform();
|
||||
|
||||
if (platform == WIN_NT) {
|
||||
char tmp[MAX_PATH];
|
||||
|
|
|
@ -349,7 +349,7 @@ static int file_lookup(const char *name, int family, struct hostent **host)
|
|||
|
||||
PATH_HOSTS[0] = '\0';
|
||||
|
||||
platform = getplatform();
|
||||
platform = ares__getplatform();
|
||||
|
||||
if (platform == WIN_NT) {
|
||||
char tmp[MAX_PATH];
|
||||
|
|
|
@ -717,7 +717,7 @@ DhcpNameServer
|
|||
goto okay;
|
||||
}
|
||||
|
||||
platform = getplatform();
|
||||
platform = ares__getplatform();
|
||||
|
||||
if (platform == WIN_NT)
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#define V_PLATFORM_WIN32_NT 2
|
||||
#define V_PLATFORM_WIN32_CE 3
|
||||
|
||||
win_platform getplatform(void)
|
||||
win_platform ares__getplatform(void)
|
||||
{
|
||||
OSVERSIONINFOEX OsvEx;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ typedef enum {
|
|||
WIN_CE
|
||||
} win_platform;
|
||||
|
||||
extern win_platform getplatform(void);
|
||||
win_platform ares__getplatform(void);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue