blob: 90da2cc6514607d64eb6d2d42b1c9bbcd904f05c [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001#ifndef HEADER_CARES_INET_NET_PTON_H
2#define HEADER_CARES_INET_NET_PTON_H
3
4/* Copyright (C) 2005-2013 by Daniel Stenberg et al
5 *
6 * Permission to use, copy, modify, and distribute this
7 * software and its documentation for any purpose and without
8 * fee is hereby granted, provided that the above copyright
9 * notice appear in all copies and that both that copyright
10 * notice and this permission notice appear in supporting
11 * documentation, and that the name of M.I.T. not be used in
12 * advertising or publicity pertaining to distribution of the
13 * software without specific, written prior permission.
14 * M.I.T. makes no representations about the suitability of
15 * this software for any purpose. It is provided "as is"
16 * without express or implied warranty.
17 */
18
19#ifdef HAVE_INET_NET_PTON
20#define ares_inet_net_pton(w,x,y,z) inet_net_pton(w,x,y,z)
21#else
22int ares_inet_net_pton(int af, const char *src, void *dst, size_t size);
23#endif
24
25#endif /* HEADER_CARES_INET_NET_PTON_H */