From 7805978130bff3d12577cd0f7ab22e16fcf455ed Mon Sep 17 00:00:00 2001 From: julian Date: Tue, 23 Jul 1996 01:18:47 +0000 Subject: Submitted by: archie@whistle.com appletalk cleanups --- sys/netatalk/endian.h | 62 ++------------------------------------------------- 1 file changed, 2 insertions(+), 60 deletions(-) (limited to 'sys/netatalk/endian.h') diff --git a/sys/netatalk/endian.h b/sys/netatalk/endian.h index 919d351..255c226 100644 --- a/sys/netatalk/endian.h +++ b/sys/netatalk/endian.h @@ -21,67 +21,9 @@ * netatalk@itd.umich.edu */ -# ifndef _ATALK_ENDIAN_H_ +#ifndef _ATALK_ENDIAN_H_ #define _ATALK_ENDIAN_H_ -#ifdef _IBMR2 -#include -#endif _IBMR2 - -#ifdef linux -#include -#define BYTE_ORDER __BYTE_ORDER -#endif linux - -#ifdef __FreeBSD__ #include -#endif __FreeBSD__ - -# ifndef BYTE_ORDER -#define LITTLE_ENDIAN 1234 -#define BIG_ENDIAN 4321 -#define PDP_ENDIAN 3412 - -#ifdef sun -#ifdef i386 -#define BYTE_ORDER LITTLE_ENDIAN -#else i386 -#define BYTE_ORDER BIG_ENDIAN -#endif i386 -#else -#ifdef MIPSEB -#define BYTE_ORDER BIG_ENDIAN -#else -#ifdef MIPSEL -#define BYTE_ORDER LITTLE_ENDIAN -#else -Like, what is your byte order, man? -#endif MIPSEL -#endif MIPSEB -#endif sun -# endif BYTE_ORDER - -# ifndef ntohl -# if defined( sun ) || defined( ultrix ) || defined( _IBMR2 ) -#if BYTE_ORDER == BIG_ENDIAN -#define ntohl(x) (x) -#define ntohs(x) (x) -#define htonl(x) (x) -#define htons(x) (x) - -#else -#if defined( mips ) && defined( KERNEL ) -#define ntohl(x) nuxi_l(x) -#define ntohs(x) nuxi_s(x) -#define htonl(x) nuxi_l(x) -#define htons(x) nuxi_s(x) - -#else mips KERNEL -unsigned short ntohs(), htons(); -unsigned long ntohl(), htonl(); -#endif mips KERNEL -#endif BYTE_ORDER -# endif sun ultrix _IBMR2 -# endif ntohl -# endif _ATALK_ENDIAN_H_ +#endif _ATALK_ENDIAN_H_ -- cgit v1.1