> That one supports non-Windows too.

On non-Windows, inet_pton() is usually provided through libc.