Use RTEMS provided <sys/endian.h>

This commit is contained in:
Sebastian Huber
2015-11-17 14:42:28 +01:00
parent dd96574e45
commit d5b64f2704
3 changed files with 3 additions and 206 deletions

View File

@@ -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)
{