2 * Copyright (C) 2006-2009 Brian Aker
5 * Use and distribution licensed under the BSD license. See
6 * the COPYING file in the parent directory for full text.
12 #ifndef __LIBMEMCACHED_BYTEORDER_H__
13 #define __LIBMEMCACHED_BYTEORDER_H__
18 #include <sys/types.h>
22 /* Define this here, which will turn on the visibilty controls while we're
23 * building libmemcached.
25 #define BUILDING_LIBMEMCACHED 1
27 #include "libmemcached/memcached.h"
31 uint64_t ntohll(uint64_t);
33 uint64_t htonll(uint64_t);
37 /* /usr/include/netinet/in.h defines macros from ntohs() to _bswap_nn to
38 * optimize the conversion functions, but the prototypes generate warnings
39 * from gcc. The conversion methods isn't the bottleneck for my app, so
40 * just remove the warnings by undef'ing the optimization ..
48 #endif /*__LIBMEMCACHED_BYTEORDER_H__ */