I get the following errors with my code when using nmake
input.c(375) : error C2065: 'ulong' : undeclared identifier
input.c(375) : error C2146: syntax error : missing ';' before identifier 'datelo'
input.c(375) : error C2065: 'datelo' : undeclared identifier
input.c(376) : error C2146: syntax error : missing ';' before identifier 'datehi'
input.c(376) : error C2065: 'datehi' : undeclared identifier
input.c(377) : error C2065: 'lp' : undeclared identifier
input.c(380) : error C2059: syntax error : ')'
void v100msg_ntoh(MPSysLogMsg_v100* msg) {
#if !defined(BIGENDIAN)
ulong datelo;
ulong datehi;
ulong* lp;
msg->naddr_len = ntohs(msg->naddr_len);
lp = (ulong*)&msg->date;
datehi = ntohl(lp[1]);
datelo = ntohl(lp[0]);
lp[0] = datehi;
lp[1] = datelo;
msg->type = ntohs(msg->type);
msg->naddr_type = ntohs(msg->naddr_type);
msg->universe_len = ntohs(msg->universe_len);
msg->logfile_len = ntohs(msg->logfile_len);
msg->prog_len = ntohs(msg->prog_len);
msg->pid_len = ntohs(msg->pid_len);
msg->tid_len = ntohs(msg->tid_len);
msg->package_len = ntohs(msg->package_len);
msg->tag_len = ntohs(msg->tag_len);
msg->msg_len = ntohs(msg->msg_len);
#endif /* if !defined(BIGENDIAN) */
}
any one got any ideas on how to fix my problem?