Style cleanup
[m6w6/libmemcached] / libmemcached / byteorder.cc
index ab35a9efef70e4200e39d55098c758f17124e194..7e141756000cc3a5977e5405d9ff1335d77e4a3c 100644 (file)
@@ -58,6 +58,20 @@ static inline uint64_t swap64(uint64_t in)
 }
 #endif
 
+#ifdef HAVE_HTONLL
+
+uint64_t memcached_ntohll(uint64_t value)
+{
+  return ntohll(value);
+}
+
+uint64_t memcached_htonll(uint64_t value)
+{
+  return htonll(value);
+}
+
+#else // HAVE_HTONLL
+
 uint64_t memcached_ntohll(uint64_t value)
 {
   return swap64(value);
@@ -67,3 +81,5 @@ uint64_t memcached_htonll(uint64_t value)
 {
   return swap64(value);
 }
+
+#endif // HAVE_HTONLL