2013-04-17 00:00:59 -04:00
|
|
|
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
|
|
|
|
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
|
|
|
|
#ident "$Id$"
|
|
|
|
#ident "Copyright (c) 2007-2012 Tokutek Inc. All rights reserved."
|
2013-04-16 23:59:09 -04:00
|
|
|
|
2013-04-16 23:57:28 -04:00
|
|
|
#ifndef _TOKU_HTONL_H
|
|
|
|
#define _TOKU_HTONL_H
|
|
|
|
|
2013-04-16 23:57:54 -04:00
|
|
|
#if !__linux__ && !__FreeBSD__ && !__sun__
|
2013-04-17 00:00:25 -04:00
|
|
|
//#error
|
2013-04-16 23:57:28 -04:00
|
|
|
#endif
|
|
|
|
|
2013-04-17 00:01:18 -04:00
|
|
|
// TODO: This byte order stuff should all be in once place (ie: portability layer, not toku_include)
|
|
|
|
#include <toku_htod.h>
|
2013-04-16 23:57:28 -04:00
|
|
|
#include <arpa/inet.h>
|
|
|
|
|
|
|
|
static inline uint32_t toku_htonl(uint32_t i) {
|
|
|
|
return htonl(i);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline uint32_t toku_ntohl(uint32_t i) {
|
|
|
|
return ntohl(i);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|