Fix: try to include endian.h by default
[babeltrace.git] / include / babeltrace / endian.h
1 #ifndef _BABELTRACE_ENDIAN_H
2 #define _BABELTRACE_ENDIAN_H
3
4 /*
5 * babeltrace/endian.h
6 *
7 * Copyright 2012 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 *
9 * endian.h compatibility layer.
10 *
11 * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
12 * OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
13 *
14 * Permission is hereby granted to use or copy this program
15 * for any purpose, provided the above notices are retained on all copies.
16 * Permission to modify the code and to distribute modified code is granted,
17 * provided the above notices are retained, and a notice that the code was
18 * modified is included with the above copyright notice.
19 */
20
21 #ifdef __FreeBSD__
22 #include <machine/endian.h>
23 #else
24 #include <endian.h>
25 #endif
26
27 #ifndef FLOAT_WORD_ORDER
28 #ifdef __FLOAT_WORD_ORDER
29 #define FLOAT_WORD_ORDER __FLOAT_WORD_ORDER
30 #else /* __FLOAT_WORD_ORDER */
31 #define FLOAT_WORD_ORDER BYTE_ORDER
32 #endif /* __FLOAT_WORD_ORDER */
33 #endif /* FLOAT_WORD_ORDER */
34
35 #endif /* _BABELTRACE_ENDIAN_H */
This page took 0.041431 seconds and 4 git commands to generate.