Make sure that BYTE_ORDER is actually defined. Panic with #error if not.

This commit is contained in:
likewise 2003-03-10 16:12:41 +00:00
parent aa84869fdb
commit 7e36c58529

View File

@ -168,6 +168,9 @@ inet_chksum_pbuf(struct pbuf *p)
return ~(acc & 0xffffUL);
}
#ifndef BYTE_ORDER
#error BYTE_ORDER is not defined
#endif
#if BYTE_ORDER == LITTLE_ENDIAN
/*-----------------------------------------------------------------------------------*/
u16_t