projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
testing
[awesomized/libmemcached]
/
src
/
libmemcached
/
byteorder.cc
diff --git
a/src/libmemcached/byteorder.cc
b/src/libmemcached/byteorder.cc
index 44500add8832a8fd33ec318a874575e21a3ae623..c3867a5afe01cc83bae5674ccb76b7201dff7498 100644
(file)
--- a/
src/libmemcached/byteorder.cc
+++ b/
src/libmemcached/byteorder.cc
@@
-1,5
+1,5
@@
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
- *
+ *
* Libmemcached library
*
* Copyright (C) 2011 Data Differential, http://datadifferential.com/
* Libmemcached library
*
* Copyright (C) 2011 Data Differential, http://datadifferential.com/
@@
-40,9
+40,10
@@
/* Byte swap a 64-bit number. */
#ifndef swap64
/* Byte swap a 64-bit number. */
#ifndef swap64
+# ifndef HAVE_HTONLL
static inline uint64_t swap64(uint64_t in)
{
static inline uint64_t swap64(uint64_t in)
{
-#if
ndef
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;
/* 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
}
return in;
#endif // WORDS_BIGENDIAN
}
+# endif
#endif
#ifdef HAVE_SYS_TYPES_H
#endif
#ifdef HAVE_SYS_TYPES_H