projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Compiler fixes.
[awesomized/libmemcached]
/
libmemcached
/
byteorder.cc
diff --git
a/libmemcached/byteorder.cc
b/libmemcached/byteorder.cc
index ab35a9efef70e4200e39d55098c758f17124e194..7e141756000cc3a5977e5405d9ff1335d77e4a3c 100644
(file)
--- a/
libmemcached/byteorder.cc
+++ b/
libmemcached/byteorder.cc
@@
-58,6
+58,20
@@
static inline uint64_t swap64(uint64_t in)
}
#endif
}
#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);
uint64_t memcached_ntohll(uint64_t value)
{
return swap64(value);
@@
-67,3
+81,5
@@
uint64_t memcached_htonll(uint64_t value)
{
return swap64(value);
}
{
return swap64(value);
}
+
+#endif // HAVE_HTONLL