renamed getplatform() to ares__getplatform() to avoid namespace pollution
authorYang Tse <yangsita@gmail.com>
Fri, 25 Mar 2011 16:57:02 +0000 (17:57 +0100)
committerYang Tse <yangsita@gmail.com>
Fri, 25 Mar 2011 16:57:02 +0000 (17:57 +0100)
ares_gethostbyaddr.c
ares_gethostbyname.c
ares_init.c
ares_platform.c
ares_platform.h

index e5088b7..4b4c8a7 100644 (file)
@@ -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];
index 5339fee..72f8f8b 100644 (file)
@@ -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];
index afcd8d6..75064e9 100644 (file)
@@ -717,7 +717,7 @@ DhcpNameServer
       goto okay;
   }
 
-  platform = getplatform();
+  platform = ares__getplatform();
 
   if (platform == WIN_NT)
   {
index 0fe2675..9aeeb02 100644 (file)
@@ -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;
 
index 1a23ce9..8d61d25 100644 (file)
@@ -29,7 +29,7 @@ typedef enum {
   WIN_CE
 } win_platform;
 
-extern win_platform getplatform(void);
+win_platform ares__getplatform(void);
 
 #endif