Mass rename: ltt_*/ltt-* to LTTNG_*/LTTNG-*
[lttng-modules.git] / lttng-endian.h
1 #ifndef _LTTNG_ENDIAN_H
2 #define _LTTNG_ENDIAN_H
3
4 /*
5 * lttng-endian.h
6 *
7 * Copyright 2010-2011 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 *
9 * Dual LGPL v2.1/GPL v2 license.
10 */
11
12 #ifdef __KERNEL__
13 # include <asm/byteorder.h>
14 # ifdef __BIG_ENDIAN
15 # define __BYTE_ORDER __BIG_ENDIAN
16 # elif defined(__LITTLE_ENDIAN)
17 # define __BYTE_ORDER __LITTLE_ENDIAN
18 # else
19 # error "unknown endianness"
20 # endif
21 #ifndef __BIG_ENDIAN
22 # define __BIG_ENDIAN 4321
23 #endif
24 #ifndef __LITTLE_ENDIAN
25 # define __LITTLE_ENDIAN 1234
26 #endif
27 #else
28 # include <endian.h>
29 #endif
30
31 #endif /* _LTTNG_ENDIAN_H */
This page took 0.041036 seconds and 5 git commands to generate.