mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Make sure that BYTE_ORDER is actually defined. Panic with #error if not.
This commit is contained in:
parent
aa84869fdb
commit
7e36c58529
@ -168,6 +168,9 @@ inet_chksum_pbuf(struct pbuf *p)
|
|||||||
return ~(acc & 0xffffUL);
|
return ~(acc & 0xffffUL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef BYTE_ORDER
|
||||||
|
#error BYTE_ORDER is not defined
|
||||||
|
#endif
|
||||||
#if BYTE_ORDER == LITTLE_ENDIAN
|
#if BYTE_ORDER == LITTLE_ENDIAN
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
u16_t
|
u16_t
|
||||||
|
Loading…
Reference in New Issue
Block a user