/* * ============================================================================ * CONFIG: Configuration information about your host machine * * Author: J. Zbiciak * Last Revision: 9/12/98 * ============================================================================ * _BIG_ENDIAN -- Host machine is big endian * _LITTLE_ENDIAN -- Host machine is little endian * ============================================================================ */ #ifndef _CONFIG_H #define _CONFIG_H /* * ============================================================================ * If you get an error here, define _BIG_ENDIAN or _LITTLE_ENDIAN as * is required for your host machine! * ============================================================================ */ #ifdef sun #define _BIG_ENDIAN #endif /*#define _LITTLE_ENDIAN */ #if !defined(_BIG_ENDIAN) && !defined(_LITTLE_ENDIAN) # include # ifndef __BYTE_ORDER # error Please manually set your machine endian in 'config.h' # endif # if __BYTE_ORDER==4321 # define _BIG_ENDIAN # endif # if __BYTE_ORDER==1234 # define _LITTLE_ENDIAN # endif # if !defined(_BIG_ENDIAN) && !defined(_LITTLE_ENDIAN) # error Unsupported __BYTE_ORDER. Set your machine endian in 'config.h'. # endif #endif #if defined(_BIG_ENDIAN) && defined(_LITTLE_ENDIAN) # error Both _BIG_ENDIAN and _LITTLE_ENDIAN defined. Pick only 1! #endif #endif /* * ============================================================================ * Copyright (c) 1998, Joseph Zbiciak. * ============================================================================ */