diff options
author | Trond Norbye <Trond.Norbye@sun.com> | 2009-08-26 23:44:30 +0200 |
---|---|---|
committer | Dustin Sallings <dustin@spy.net> | 2009-09-02 16:08:07 -0700 |
commit | 9791b7794e5439baaced1fd4afa26e09f33cfc36 (patch) | |
tree | 65b2efb41ec41a3bfe98ed970ee183e6cba76cf8 /util.h | |
parent | f9bc2b11edf151ce4b33efbe011bd807f14180ca (diff) | |
download | memcached-9791b7794e5439baaced1fd4afa26e09f33cfc36.tar.gz |
Issue: #83: Refactor: use htonll or ntohll if the os provides them
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -12,6 +12,11 @@ bool safe_strtoll(const char *str, int64_t *out); bool safe_strtoul(const char *str, uint32_t *out); bool safe_strtol(const char *str, int32_t *out); +#ifndef HAVE_HTONLL +extern uint64_t htonll(uint64_t); +extern uint64_t ntohll(uint64_t); +#endif + #ifdef __GCC # define __gcc_attribute__ __attribute__ #else |