Index: uspace/lib/softfloat/include/sftypes.h
===================================================================
--- uspace/lib/softfloat/include/sftypes.h	(revision 00acd66d3981789b3f8b04cdd854d29343dd9aa0)
+++ uspace/lib/softfloat/include/sftypes.h	(revision c9f6e49f0fb66a74ff19dac4951b9b121322ca4f)
@@ -36,5 +36,5 @@
 #define __SFTYPES_H__
 
-#include <endian.h>
+#include <byteorder.h>
 #include <stdint.h>
 
@@ -44,15 +44,15 @@
 
 	struct 	{
-		#if __BYTE_ORDER == __BIG_ENDIAN
+#if defined(ARCH_IS_BIG_ENDIAN)
 		uint32_t sign:1;
 		uint32_t exp:8;
 		uint32_t fraction:23;
-		#elif __BYTE_ORDER == __LITTLE_ENDIAN
+#elif defined(ARCH_IS_LITTLE_ENDIAN)
 		uint32_t fraction:23;
 		uint32_t exp:8;
 		uint32_t sign:1;
-		#else 
-			#error "Unknown endians."
-		#endif
+#else 
+#error "Unknown endians."
+#endif
 		} parts __attribute__ ((packed));
  	} float32;
@@ -63,15 +63,15 @@
 	
 	struct	{
-		#if __BYTE_ORDER == __BIG_ENDIAN
+#if defined(ARCH_IS_BIG_ENDIAN)
 		uint64_t sign:1;
 		uint64_t exp:11;
 		uint64_t fraction:52;
-		#elif __BYTE_ORDER == __LITTLE_ENDIAN
+#elif defined(ARCH_IS_LITTLE_ENDIAN)
 		uint64_t fraction:52;
 		uint64_t exp:11;
 		uint64_t sign:1;
-		#else 
-			#error "Unknown endians."
-		#endif
+#else 
+#error "Unknown endians."
+#endif
 		} parts __attribute__ ((packed));
 	} float64;
@@ -82,5 +82,8 @@
 #define FLOAT64_MIN
 
-/* For recognizing NaNs or infinity use isFloat32NaN and is Float32Inf, comparing with this constants is not sufficient */
+/*
+ * For recognizing NaNs or infinity use isFloat32NaN and is Float32Inf,
+ * comparing with these constants is not sufficient.
+ */
 #define FLOAT32_NAN 0x7FC00001
 #define FLOAT32_SIGNAN 0x7F800001
