X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Fust-endian.h;h=9ec7cd9b7abce38c7b85ab795a49da97483922cd;hb=e58095efc3a51a505fc533e3e56b9b5ed8743a8b;hp=7a69d808b2fbbbc1002fa5376faf042eb5e11979;hpb=75181c4b1b6e046ae8561c486ced003a83b1a696;p=lttng-ust.git diff --git a/include/lttng/ust-endian.h b/include/lttng/ust-endian.h index 7a69d808..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 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 */