xref: /netbsd/sys/arch/vax/include/endian_machdep.h (revision bf9ec67e)
1 /*	$NetBSD: endian_machdep.h,v 1.2 2000/05/27 16:44:14 ragge Exp $	*/
2 
3 #define _BYTE_ORDER _LITTLE_ENDIAN
4 
5 #ifdef	__GNUC__
6 
7 #include <machine/byte_swap.h>
8 
9 #define	ntohl(x)        __byte_swap_long(x)
10 #define ntohs(x)        __byte_swap_word(x)
11 #define htonl(x)        __byte_swap_long(x)
12 #define htons(x)        __byte_swap_word(x)
13 
14 #endif
15