projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CTF writer: restore native byte order is the CPU's native byte order
[babeltrace.git]
/
include
/
babeltrace
/
endian.h
diff --git
a/include/babeltrace/endian.h
b/include/babeltrace/endian.h
index c5e5d7055f5ff8f1ebf4a3233d7f2a0d7d098c64..55f8d1ec0db346606e2b6a5b3ab243b26ce731b5 100644
(file)
--- a/
include/babeltrace/endian.h
+++ b/
include/babeltrace/endian.h
@@
-222,4
+222,10
@@
#endif /* __FLOAT_WORD_ORDER */
#endif /* FLOAT_WORD_ORDER */
#endif /* __FLOAT_WORD_ORDER */
#endif /* FLOAT_WORD_ORDER */
+#if (BYTE_ORDER == BIG_ENDIAN)
+# define BT_CTF_MY_BYTE_ORDER BT_CTF_BYTE_ORDER_BIG_ENDIAN
+#else
+# define BT_CTF_MY_BYTE_ORDER BT_CTF_BYTE_ORDER_LITTLE_ENDIAN
+#endif
+
#endif /* _BABELTRACE_ENDIAN_H */
#endif /* _BABELTRACE_ENDIAN_H */
This page took
0.024103 seconds
and
4
git commands to generate.