Skip to content
Snippets Groups Projects
Commit f5db4980 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Apparently MinGW32 doesn't have inet_ntop() or inet_pton() either

parent e43ab6c6
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment