EPICS Base  7.0.6.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
epicsEndian.h
1 /*************************************************************************\
2 * Copyright (c) 2007 UChicago Argonne LLC, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2002 The Regents of the University of California, as
5 * Operator of Los Alamos National Laboratory.
6 * SPDX-License-Identifier: EPICS
7 * EPICS BASE is distributed subject to a Software License Agreement found
8 * in file LICENSE that is included with this distribution.
9 \*************************************************************************/
10 
11 #ifndef INC_epicsEndian_H
12 #define INC_epicsEndian_H
13 
14 /* This file must be usable from both C and C++ */
15 
16 #define EPICS_ENDIAN_LITTLE 1234
17 #define EPICS_ENDIAN_BIG 4321
18 
19 
20 /* The following OS Dependent file defines the macros
21  * EPICS_BYTE_ORDER and EPICS_FLOAT_WORD_ORDER to be
22  * one of the above EPICS_ENDIAN_ values.
23  */
24 
25 #include "osdWireConfig.h"
26 
27 #ifndef EPICS_BYTE_ORDER
28 #error osdWireConfig.h didnt define EPICS_BYTE_ORDER
29 #endif
30 
31 #ifndef EPICS_FLOAT_WORD_ORDER
32 #error osdWireConfig.h didnt define EPICS_FLOAT_WORD_ORDER
33 #endif
34 
35 #endif /* INC_epicsEndian_H */