Re: [Mingw-w64-public] Why is inet_pton() not declared?

2018-11-21 Thread Marc-André Lureau
Hi On Thu, Nov 22, 2018 at 9:45 AM Liu Hao wrote: > > 在 2018/11/22 6:13, Marc-André Lureau 写道: > > > > It looks like this: > > #define InetNtopA inet_ntop > > > > should be written: > > #define inet_ntop InetNtopA > > > > same for inet_pton (perhaps others) > > To understand what happens, take a

Re: [Mingw-w64-public] Why is inet_pton() not declared?

2018-11-21 Thread Liu Hao
在 2018/11/22 6:13, Marc-André Lureau 写道: > > It looks like this: > #define InetNtopA inet_ntop > > should be written: > #define inet_ntop InetNtopA > > same for inet_pton (perhaps others) To understand what happens, take a look at these lines: ``` #define InetPtonA inet_pton

Re: [Mingw-w64-public] Why is inet_pton() not declared?

2018-11-21 Thread Marc-André Lureau
Hi On Thu, Nov 22, 2018 at 2:08 AM Mateusz Mikuła wrote: > > Your example works fine with mingw-w64 6.0.0. ok > You can see function definition here: > https://gitlab.com/mati865/mingw-w64-mirror/blob/master/mingw-w64-headers/include/ws2tcpip.h#L444 > It looks like this: #define InetNtopA

Re: [Mingw-w64-public] Why is inet_pton() not declared?

2018-11-21 Thread Mateusz Mikuła
Your example works fine with mingw-w64 6.0.0. You can see function definition here: https://gitlab.com/mati865/mingw-w64-mirror/blob/master/mingw-w64-headers/include/ws2tcpip.h#L444 śr., 21 lis 2018 o 22:49 Marc-André Lureau napisał(a): > Hi > On Thu, Nov 22, 2018 at 1:33 AM Earnie via

Re: [Mingw-w64-public] Why is inet_pton() not declared?

2018-11-21 Thread Marc-André Lureau
Hi On Thu, Nov 22, 2018 at 1:33 AM Earnie via Mingw-w64-public wrote: > > On 11/21/2018 2:12 PM, Marc-André Lureau wrote: > > Hi, > > > > Apparently, this is a recurrent question on the web, but I can't find > > an answer what is the correct solution. From mingw git repo: > > > > commit

Re: [Mingw-w64-public] Why is inet_pton() not declared?

2018-11-21 Thread Earnie via Mingw-w64-public
On 11/21/2018 2:12 PM, Marc-André Lureau wrote: Hi, Apparently, this is a recurrent question on the web, but I can't find an answer what is the correct solution. From mingw git repo: commit 5fe3a72687f0629b68333fa438f4389db790651b Author: Rafaël Carré Date: Mon Mar 18 14:21:42 2013 +

[Mingw-w64-public] Why is inet_pton() not declared?

2018-11-21 Thread Marc-André Lureau
Hi, Apparently, this is a recurrent question on the web, but I can't find an answer what is the correct solution. From mingw git repo: commit 5fe3a72687f0629b68333fa438f4389db790651b Author: Rafaël Carré Date: Mon Mar 18 14:21:42 2013 + Add InetPtonA, inet_pton, and InetPtonW