X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fbyteorder.h;h=f43dbc435f8dc30eb29936b6d4b2f018bb8670e3;hb=7da7d839bffc2b41ea532c70dbe386fb742e714d;hp=254641f81dfaaf01f56cf3696837e5e4942e1791;hpb=34418e51585216006d5b241fc9104dc4b88d1be0;p=awesomized%2Flibmemcached diff --git a/libmemcached/byteorder.h b/libmemcached/byteorder.h index 254641f8..f43dbc43 100644 --- a/libmemcached/byteorder.h +++ b/libmemcached/byteorder.h @@ -1,8 +1,24 @@ -#ifndef LIBMEMCACHED_BYTEORDER_H -#define LIBMEMCACHED_BYTEORDER_H +/* LibMemcached + * Copyright (C) 2006-2009 Brian Aker + * All rights reserved. + * + * Use and distribution licensed under the BSD license. See + * the COPYING file in the parent directory for full text. + * + * Summary: + * + */ + +#ifndef __LIBMEMCACHED_BYTEORDER_H__ +#define __LIBMEMCACHED_BYTEORDER_H__ #include "config.h" +#if HAVE_SYS_TYPES_H +#include +#endif + + /* Define this here, which will turn on the visibilty controls while we're * building libmemcached. */ @@ -12,9 +28,9 @@ #ifndef HAVE_HTONLL LIBMEMCACHED_LOCAL -extern uint64_t ntohll(uint64_t); +uint64_t ntohll(uint64_t); LIBMEMCACHED_LOCAL -extern uint64_t htonll(uint64_t); +uint64_t htonll(uint64_t); #endif #ifdef linux @@ -29,4 +45,4 @@ extern uint64_t htonll(uint64_t); #undef htonl #endif -#endif /* LIBMEMCACHED_BYTEORDER_H */ +#endif /*__LIBMEMCACHED_BYTEORDER_H__ */