[IPHLPAPI_WINETEST] Import htonl and co from ws2_32 instead of hacking things locally. ROSTESTS-206

svn path=/trunk/; revision=70270
This commit is contained in:
Amine Khaldi 2015-12-05 16:40:43 +00:00
parent 626e9cdf00
commit e8ce0215cf
2 changed files with 1 additions and 11 deletions

View file

@ -2,5 +2,5 @@
add_executable(iphlpapi_winetest iphlpapi.c testlist.c)
target_link_libraries(iphlpapi_winetest wine)
set_module_type(iphlpapi_winetest win32cui)
add_importlibs(iphlpapi_winetest msvcrt kernel32 ntdll)
add_importlibs(iphlpapi_winetest ws2_32 msvcrt kernel32 ntdll)
add_cd_file(TARGET iphlpapi_winetest DESTINATION reactos/bin FOR all)

View file

@ -48,16 +48,6 @@
#define ICMP_MINLEN 8 /* copied from dlls/iphlpapi/ip_icmp.h file */
#undef htonl
#undef htons
#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))
static HMODULE hLibrary = NULL;
static DWORD (WINAPI *pGetNumberOfInterfaces)(PDWORD);