X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Fust-endian.h;h=9ec7cd9b7abce38c7b85ab795a49da97483922cd;hb=885b1dfd5d050ed5610721d9ec840bfd121644ec;hp=085ff0728e0f7d6fbde7c43e07c4c7e8591ec195;hpb=2ae577586ce440e59acd37c0110b80a595a64d12;p=lttng-ust.git diff --git a/include/lttng/ust-endian.h b/include/lttng/ust-endian.h index 085ff072..9ec7cd9b 100644 --- a/include/lttng/ust-endian.h +++ b/include/lttng/ust-endian.h @@ -18,12 +18,20 @@ * modified is included with the above copyright notice. */ -#ifdef __linux__ +#if (defined(__linux__) || defined(__CYGWIN__)) #include -#elif __FreeBSD__ +#elif defined(__FreeBSD__) #include #else -#error "Please add support for your OS into lttng/ust-endian.h." +#error "Please add support for your OS." #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 */