*
*/
-#include <libmemcached/common.h>
+#include <config.h>
+
+#include <sys/types.h>
+
+#include <libmemcached/visibility.h>
+#include <libmemcached/byteorder.h>
/* Byte swap a 64-bit number. */
#ifndef swap64
}
#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);
{
return swap64(value);
}
+
+#endif // HAVE_HTONLL