Most errors found with: codespell -L cach,thst,odly,aslo,parm,parms,inpu,ges,prset,pevent,ptd,pring,valu,noo,noe,ned,inout,ro,siz,froms,nd,fo,singl,sart,multy,tthe,allong,ment,inate,nodel,tring,alse,ture,thi,wille,numer Some more manually found (its -> it's) c++20: Do not use apostrophe (e.g. can't) in unquoted #error message
71 lines
2.4 KiB
C
71 lines
2.4 KiB
C
/*************************************************************************\
|
|
* SPDX-License-Identifier: EPICS
|
|
* EPICS BASE is distributed subject to a Software License Agreement found
|
|
* in file LICENSE that is included with this distribution.
|
|
\*************************************************************************/
|
|
|
|
/*
|
|
* Default version of osdWireConfig.h that might
|
|
* work on UNIX like systems that define <sys/param.h>
|
|
*
|
|
* Author Jeffrey O. Hill
|
|
* johill@lanl.gov
|
|
*/
|
|
|
|
#ifndef osdWireConfig_h
|
|
#define osdWireConfig_h
|
|
|
|
/* This file must be usable from both C and C++ */
|
|
|
|
/* if compilation fails because this wasn't found then you may need to define an OS
|
|
specific osdWireConfig.h */
|
|
#include <sys/param.h>
|
|
|
|
#ifdef __BYTE_ORDER
|
|
# if __BYTE_ORDER == __LITTLE_ENDIAN
|
|
# define EPICS_BYTE_ORDER EPICS_ENDIAN_LITTLE
|
|
# elif __BYTE_ORDER == __BIG_ENDIAN
|
|
# define EPICS_BYTE_ORDER EPICS_ENDIAN_BIG
|
|
# else
|
|
# error EPICS has not been ported to run on the <sys/param.h> specified __BYTE_ORDER
|
|
# endif
|
|
#else
|
|
# ifdef BYTE_ORDER
|
|
# if BYTE_ORDER == LITTLE_ENDIAN
|
|
# define EPICS_BYTE_ORDER EPICS_ENDIAN_LITTLE
|
|
# elif BYTE_ORDER == BIG_ENDIAN
|
|
# define EPICS_BYTE_ORDER EPICS_ENDIAN_BIG
|
|
# else
|
|
# error EPICS has not been ported to run on the <sys/param.h> specified BYTE_ORDER
|
|
# endif
|
|
# else
|
|
# error <sys/param.h> does not specify __BYTE_ORDER or BYTE_ORDER - is an OS specific osdWireConfig.h needed?
|
|
# endif
|
|
#endif
|
|
|
|
#ifdef __FLOAT_WORD_ORDER
|
|
# if __FLOAT_WORD_ORDER == __LITTLE_ENDIAN
|
|
# define EPICS_FLOAT_WORD_ORDER EPICS_ENDIAN_LITTLE
|
|
# elif __FLOAT_WORD_ORDER == __BIG_ENDIAN
|
|
# define EPICS_FLOAT_WORD_ORDER EPICS_ENDIAN_BIG
|
|
# else
|
|
# error EPICS has not been ported to <sys/param.h> specified __FLOAT_WORD_ORDER
|
|
# endif
|
|
#else
|
|
# ifdef FLOAT_WORD_ORDER
|
|
# if FLOAT_WORD_ORDER == LITTLE_ENDIAN
|
|
# define EPICS_FLOAT_WORD_ORDER EPICS_ENDIAN_LITTLE
|
|
# elif FLOAT_WORD_ORDER == BIG_ENDIAN
|
|
# define EPICS_FLOAT_WORD_ORDER EPICS_ENDIAN_BIG
|
|
# else
|
|
# error EPICS has not been ported to <sys/param.h> specified FLOAT_WORD_ORDER
|
|
# endif
|
|
# else
|
|
/* assume that if neither __FLOAT_WORD_ORDER nor FLOAT_WORD_ORDER are
|
|
defined then weird fp ordered archs like arm nwfp aren't supported */
|
|
# define EPICS_FLOAT_WORD_ORDER EPICS_BYTE_ORDER
|
|
# endif
|
|
#endif
|
|
|
|
#endif /* ifdef osdWireConfig_h */
|