Commits (1)
......@@ -720,7 +720,7 @@ char* iniSetIpAddress(str_list_t* list, const char* section, const char* key, ui
struct in_addr in_addr;
in_addr.s_addr=htonl(value);
return iniSetString(list, section, key,
#ifdef __BORLANDC__
#if defined(__BORLANDC__) || defined(__MINGW32__)
inet_ntoa(in_addr), // deprecated function call
#else
inet_ntop(AF_INET, &in_addr, buf, sizeof(buf)),
......@@ -1644,7 +1644,7 @@ static uint32_t parseIpAddress(const char* value)
if(strchr(value,'.')==NULL)
return(strtol(value,NULL,0));
#ifdef __BORLANDC__
#if defined(__BORLANDC__) || defined(__MINGW32__)
result = inet_addr(value); // deprecated function call
#else
inet_pton(AF_INET, value, &result);
......