From: Mathieu Desnoyers Date: Tue, 21 Feb 2012 16:31:10 +0000 (-0500) Subject: Wrap FLOAT_WORD_ORDER X-Git-Tag: v2.1.0-rc1~97^2~16 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ad496c21b85087f600271299c9cd2a3ffe00c4c1;p=lttng-ust.git Wrap FLOAT_WORD_ORDER Signed-off-by: Mathieu Desnoyers --- diff --git a/include/lttng/ust-endian.h b/include/lttng/ust-endian.h index 7a69d808..a626027e 100644 --- a/include/lttng/ust-endian.h +++ b/include/lttng/ust-endian.h @@ -26,4 +26,12 @@ #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 */ diff --git a/include/lttng/ust-events.h b/include/lttng/ust-events.h index 476ddd78..96435c48 100644 --- a/include/lttng/ust-events.h +++ b/include/lttng/ust-events.h @@ -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, \ }, \ } \