mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 20:30:52 +08:00
Use RTEMS provided <sys/endian.h>
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
#define _RTEMS_BSD_MACHINE_ENDIAN_H
|
||||
|
||||
#include <machine/endian.h>
|
||||
#include <rtems/endian.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#if __BSD_VISIBLE
|
||||
@@ -65,6 +66,8 @@
|
||||
#define __htons(x) (__bswap16(x))
|
||||
#endif
|
||||
|
||||
#define _BYTEORDER_FUNC_DEFINED
|
||||
|
||||
static inline uint16_t
|
||||
__bswap16(uint16_t v)
|
||||
{
|
||||
|
Reference in New Issue
Block a user