Wrap FLOAT_WORD_ORDER
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 21 Feb 2012 16:31:10 +0000 (11:31 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 21 Feb 2012 16:31:10 +0000 (11:31 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/ust-endian.h
include/lttng/ust-events.h

index 7a69d808b2fbbbc1002fa5376faf042eb5e11979..a626027eb4250344836373a587417c8099695aa0 100644 (file)
 #error "Please add support for your OS into lttng/ust-endian.h."
 #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 */
index 476ddd7845a5ea264bf0b837ad37aaa91ad66d86..96435c481c7b5aa117ed04b893a057bd531dfdfd 100644 (file)
@@ -110,7 +110,7 @@ struct lttng_integer_type {
                                - _float_mant_dig(_type),       \
                  .mant_dig = _float_mant_dig(_type),           \
                  .alignment = lttng_alignof(_type) * CHAR_BIT, \
-                 .reverse_byte_order = __BYTE_ORDER != __FLOAT_WORD_ORDER, \
+                 .reverse_byte_order = BYTE_ORDER != FLOAT_WORD_ORDER, \
                },                                              \
        }                                                       \
 
This page took 0.026392 seconds and 4 git commands to generate.