06a92524c2
still include <machine/byte_swap.h> and define macros for some of the bswap*() functions.
20 lines
409 B
C
20 lines
409 B
C
/* $NetBSD: bswap.h,v 1.2 1999/08/21 05:39:55 simonb Exp $ */
|
|
|
|
/* Written by Manuel Bouyer. Public domain */
|
|
|
|
#ifndef _MACHINE_BSWAP_H_
|
|
#define _MACHINE_BSWAP_H_
|
|
|
|
#define __BSWAP_RENAME
|
|
#include <sys/bswap.h>
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#include <vax/byte_swap.h>
|
|
#define bswap16(x) __byte_swap_word(x)
|
|
#define bswap32(x) __byte_swap_long(x)
|
|
|
|
#endif /* __GNUC__ */
|
|
|
|
#endif /* !_MACHINE_BSWAP_H_ */
|