CC = cl
-CFLAGS = -nologo -$(CFG_MODEL)$(DEBUG_MODEL) -W3 -Yd -Zi -Du_int16_t=u_short
+CFLAGS = -nologo -$(CFG_MODEL)$(DEBUG_MODEL) -W3 -Yd -Zi
LDFLAGS = -machine:i386 -map
OBJ_DIR = VC6_obj
break;
}
- srv[i].priority = ntohs (*((u_int16_t *)aptr));
- aptr += sizeof(u_int16_t);
- srv[i].weight = ntohs (*((u_int16_t *)aptr));
- aptr += sizeof(u_int16_t);
- srv[i].port = ntohs (*((u_int16_t *)aptr));
- aptr += sizeof(u_int16_t);
+ srv[i].priority = ntohs (*((unsigned short *)aptr));
+ aptr += sizeof(unsigned short);
+ srv[i].weight = ntohs (*((unsigned short *)aptr));
+ aptr += sizeof(unsigned short);
+ srv[i].port = ntohs (*((unsigned short *)aptr));
+ aptr += sizeof(unsigned short);
status = ares_expand_name (aptr, abuf, alen, &srv[i].host, &len);
if (status != ARES_SUCCESS)