Update stream packet and event headers
[deliverable/lttng-modules.git] / ltt-endian.h
1 #ifndef _LTT_ENDIAN_H
2 #define _LTT_ENDIAN_H
3
4 #ifdef __KERNEL__
5 # include <asm/byteorder.h>
6 # ifdef __BIG_ENDIAN
7 # define __BYTE_ORDER __BIG_ENDIAN
8 # elif defined(__LITTLE_ENDIAN)
9 # define __BYTE_ORDER __LITTLE_ENDIAN
10 # else
11 # error "unknown endianness"
12 # endif
13 #ifndef __BIG_ENDIAN
14 # define __BIG_ENDIAN 4321
15 #endif
16 #ifndef __LITTLE_ENDIAN
17 # define __LITTLE_ENDIAN 1234
18 #endif
19 #else
20 # include <endian.h>
21 #endif
22
23 #endif /* _LTT_ENDIAN_H */
This page took 0.039048 seconds and 6 git commands to generate.