15 lines
313 B
C
15 lines
313 B
C
/* $NetBSD: endian_machdep.h,v 1.2 2004/01/23 04:03:38 simonb Exp $ */
|
|
|
|
#define _BYTE_ORDER _LITTLE_ENDIAN
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#include <machine/byte_swap.h>
|
|
|
|
#define ntohl(x) __byte_swap_long(x)
|
|
#define ntohs(x) __byte_swap_word(x)
|
|
#define htonl(x) __byte_swap_long(x)
|
|
#define htons(x) __byte_swap_word(x)
|
|
|
|
#endif
|