devLib2  2.11
epicsEndian.h
Go to the documentation of this file.
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 * EPICS BASE is distributed subject to a Software License Agreement found
7 * in file LICENSE that is included with this distribution.
8 \*************************************************************************/
9 
10 #ifndef INC_epicsEndian_H
11 #define INC_epicsEndian_H
12 
13 /* This file must be usable from both C and C++ */
14 
15 #define EPICS_ENDIAN_LITTLE 1234
16 #define EPICS_ENDIAN_BIG 4321
17 
18 
19 /* The following OS Dependent file defines the macros
20  * EPICS_BYTE_ORDER and EPICS_FLOAT_WORD_ORDER to be
21  * one of the above EPICS_ENDIAN_ values.
22  */
23 
24 #include "osdWireConfig.h"
25 
26 #ifndef EPICS_BYTE_ORDER
27 #error osdWireConfig.h didnt define EPICS_BYTE_ORDER
28 #endif
29 
30 #ifndef EPICS_FLOAT_WORD_ORDER
31 #error osdWireConfig.h didnt define EPICS_FLOAT_WORD_ORDER
32 #endif
33 
34 #endif /* INC_epicsEndian_H */