X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Flibmemcached%2Fbyteorder.cc;h=c3867a5afe01cc83bae5674ccb76b7201dff7498;hb=7883b530881983213dffaa6c71ace9204bedb82a;hp=44500add8832a8fd33ec318a874575e21a3ae623;hpb=5e760300d15ef4c5b7eed3fb9f37920ebca2f6ec;p=awesomized%2Flibmemcached diff --git a/src/libmemcached/byteorder.cc b/src/libmemcached/byteorder.cc index 44500add..c3867a5a 100644 --- a/src/libmemcached/byteorder.cc +++ b/src/libmemcached/byteorder.cc @@ -1,5 +1,5 @@ /* vim:expandtab:shiftwidth=2:tabstop=2:smarttab: - * + * * Libmemcached library * * Copyright (C) 2011 Data Differential, http://datadifferential.com/ @@ -40,9 +40,10 @@ /* 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