NetBSD/sys/arch/pc532/include/endian_machdep.h

15 lines
314 B
C
Raw Normal View History

/* $NetBSD: endian_machdep.h,v 1.1 2000/03/17 00:09:24 mycroft 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