mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
24 lines
503 B
C
24 lines
503 B
C
#ifndef INET_NTOP_H_
|
|
#define INET_NTOP_H_
|
|
|
|
#ifndef IN6ADDRSZ
|
|
#define IN6ADDRSZ 16
|
|
#endif
|
|
|
|
#ifndef INT16SZ
|
|
#define INT16SZ sizeof(int16_t)
|
|
#endif
|
|
|
|
#if !defined(EAFNOSUPPORT) && defined(WSAEAFNOSUPPORT)
|
|
#define EAFNOSUPPORT WSAEAFNOSUPPORT
|
|
#endif
|
|
|
|
/*
|
|
* WARNING: Don't even consider trying to compile this on a system where
|
|
* sizeof(int) < 4. sizeof(int) > 4 is fine; all the world's not a VAX.
|
|
*/
|
|
|
|
const char *inet_ntop (int af, const void *src, char *dst, size_t size);
|
|
|
|
#endif /* INET_NTOP_H_ */
|