projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
liblttng-ust-comm/lttng-ust-com.c: remove unnecessary goto in ustcomm_accept_unix_sock()
[lttng-ust.git]
/
include
/
lttng
/
ust-endian.h
diff --git
a/include/lttng/ust-endian.h
b/include/lttng/ust-endian.h
index 085ff0728e0f7d6fbde7c43e07c4c7e8591ec195..9ec7cd9b7abce38c7b85ab795a49da97483922cd 100644
(file)
--- a/
include/lttng/ust-endian.h
+++ b/
include/lttng/ust-endian.h
@@
-18,12
+18,20
@@
* modified is included with the above copyright notice.
*/
* modified is included with the above copyright notice.
*/
-#if
def __linux__
+#if
(defined(__linux__) || defined(__CYGWIN__))
#include <endian.h>
#include <endian.h>
-#elif
__FreeBSD__
+#elif
defined(__FreeBSD__)
#include <machine/endian.h>
#else
#include <machine/endian.h>
#else
-#error "Please add support for your OS
into lttng/ust-endian.h
."
+#error "Please add support for your OS."
#endif
#endif
+#ifndef FLOAT_WORD_ORDER
+#ifdef __FLOAT_WORD_ORDER
+#define FLOAT_WORD_ORDER __FLOAT_WORD_ORDER
+#else /* __FLOAT_WORD_ORDER */
+#define FLOAT_WORD_ORDER BYTE_ORDER
+#endif /* __FLOAT_WORD_ORDER */
+#endif /* FLOAT_WORD_ORDER */
+
#endif /* _LTTNG_UST_ENDIAN_H */
#endif /* _LTTNG_UST_ENDIAN_H */
This page took
0.023386 seconds
and
4
git commands to generate.