testing
[awesomized/libmemcached] / src / libmemcached / byteorder.cc
index 44500add8832a8fd33ec318a874575e21a3ae623..c3867a5afe01cc83bae5674ccb76b7201dff7498 100644 (file)
@@ -1,5 +1,5 @@
 /*  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
- * 
+ *
  *  Libmemcached library
  *
  *  Copyright (C) 2011 Data Differential, http://datadifferential.com/
 
 /* Byte swap a 64-bit number. */
 #ifndef swap64
+# ifndef HAVE_HTONLL
 static inline uint64_t swap64(uint64_t in)
 {
-#ifndef WORDS_BIGENDIAN
+#if !WORDS_BIGENDIAN
   /* Little endian, flip the bytes around until someone makes a faster/better
    * way to do this. */
   uint64_t rv= 0;
@@ -57,6 +58,7 @@ static inline uint64_t swap64(uint64_t in)
   return in;
 #endif // WORDS_BIGENDIAN
 }
+# endif
 #endif
 
 #ifdef HAVE_SYS_TYPES_H