Index: winetests/iphlpapi/iphlpapi.c =================================================================== --- winetests/iphlpapi/iphlpapi.c (revision 70267) +++ winetests/iphlpapi/iphlpapi.c (working copy) @@ -53,10 +53,13 @@ #undef ntohl #undef ntohs -#define htonl(l) ((u_long)(l)) -#define htons(s) ((u_short)(s)) -#define ntohl(l) ((u_long)(l)) -#define ntohs(s) ((u_short)(s)) +#define htons(x) ((((x) & 0xff) << 8) | (((x) & 0xff00) >> 8)) +#define ntohs(x) htons(x) +#define htonl(x) ((((x) & 0xff) << 24) | \ + (((x) & 0xff00) << 8) | \ + (((x) & 0xff0000UL) >> 8) | \ + (((x) & 0xff000000UL) >> 24)) +#define ntohl(x) htonl(x) static HMODULE hLibrary = NULL;