Allow open /proc/lttng for read & write
[deliverable/lttng-modules.git] / lttng-endian.h
CommitLineData
a90917c3
MD
1#ifndef _LTTNG_ENDIAN_H
2#define _LTTNG_ENDIAN_H
9115fbdc 3
17baffe2 4/*
a90917c3 5 * lttng-endian.h
17baffe2 6 *
a90917c3 7 * Copyright 2010-2011 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
17baffe2
MD
8 *
9 * Dual LGPL v2.1/GPL v2 license.
10 */
11
9115fbdc
MD
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
a90917c3 31#endif /* _LTTNG_ENDIAN_H */
This page took 0.026451 seconds and 5 git commands to generate.