Date: Monday, January 15, 2007 @ 17:35:25
  Author: marc
    Path: /cvsroot/carob/carob/src

Modified: JavaSocket.cpp (1.70 -> 1.71)

REALLY check that __BYTE_ORDER is defined


----------------+
 JavaSocket.cpp |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)


Index: carob/src/JavaSocket.cpp
diff -u carob/src/JavaSocket.cpp:1.70 carob/src/JavaSocket.cpp:1.71
--- carob/src/JavaSocket.cpp:1.70       Fri Jan 12 18:47:48 2007
+++ carob/src/JavaSocket.cpp    Mon Jan 15 17:35:25 2007
@@ -496,6 +496,10 @@
   }
 }
 
+#ifndef __BYTE_ORDER
+#error "__BYTE_ORDER undefined: unknown endianness, can't implement 64bits 
swaps"
+#endif
+
 const uint64_t JavaSocket::ntohll(const uint64_t &n) const
 {
 #if __BYTE_ORDER == __BIG_ENDIAN
@@ -505,7 +509,7 @@
 #else
 // Typically found through <sys/param.h>  or <netinet/*.h>
 // See ../include/SystemDependantDefs.hpp
-#error "__BYTE_ORDER undefined: unknown endianness, can't implement 64bits 
swaps"
+#error "__BYTE_ORDER unknown: unknown endianness, can't implement 64bits swaps"
 #endif
 }
 

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to