/************** Machine (and compiler) dependent definitions. **************
 *
 * For arm32
 *
 */

/*      MACHINE TYPE	DEFINED TYPE		VALUE RANGE	*/

typedef unsigned char	int8;		/*        0 ..     255 */
typedef short		int16;		/*  -10,000 ..  10,000 */
typedef int		int32;		/* -100,000 .. 100,000 */
typedef unsigned int	uint32;		/* 	  0 ..  2^31-1 */

#ifdef NETWORK_DATABASE

/*
 *	Define NETWORK_BYTE_ORDER if the machine's int32's are
 *	already in network byte order, i.e. m68k based.
 */
#include <sys/types.h>
#include <machine/endian.h>

#if BYTE_ORDER == BIG_ENDIAN
#define NETWORK_BYTE_ORDER	/* */
#endif

/*
 *	OTHERWISE provide the functions/macros ntohl/htonl to
 *	convert longs from and to network byte order
 */

#ifndef NETWORK_BYTE_ORDER
#include <netinet/in.h>
#endif

#endif	/* NETWORK_DATABASE */
