Cygwin: Pass file paths instead of file descriptors over UNIX sockets
[lttng-ust.git] / include / lttng / ust-endian.h
index 085ff0728e0f7d6fbde7c43e07c4c7e8591ec195..9ec7cd9b7abce38c7b85ab795a49da97483922cd 100644 (file)
  * modified is included with the above copyright notice.
  */
 
-#ifdef __linux__
+#if (defined(__linux__) || defined(__CYGWIN__))
 #include <endian.h>
-#elif __FreeBSD__
+#elif defined(__FreeBSD__)
 #include <machine/endian.h>
 #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 */
This page took 0.023662 seconds and 4 git commands to generate.