/* 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;
return in;
#endif // WORDS_BIGENDIAN
}
+# endif
#endif
#ifdef HAVE_SYS_TYPES_H