xref: /netbsd-src/sys/arch/vax/include/endian.h (revision 89c5a767f8fc7a4633b2d409966e2becbb98ff92)
1 /*	$NetBSD: endian.h,v 1.15 1999/08/21 05:53:52 simonb Exp $	*/
2 
3 #ifndef _VAX_ENDIAN_H_
4 #define _VAX_ENDIAN_H_
5 
6 #define _BYTE_ORDER _LITTLE_ENDIAN
7 #include <sys/endian.h>
8 
9 #ifdef	__GNUC__
10 
11 #include <vax/byte_swap.h>
12 
13 #define	ntohl(x)        __byte_swap_long(x)
14 #define ntohs(x)        __byte_swap_word(x)
15 #define htonl(x)        __byte_swap_long(x)
16 #define htons(x)        __byte_swap_word(x)
17 
18 #endif
19 
20 #endif /* _VAX_ENDIAN_H_ */
21