Changeset View
Changeset View
Standalone View
Standalone View
src/compat/endian.h
// Copyright (c) 2014-2016 The Bitcoin Core developers | // Copyright (c) 2014-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_COMPAT_ENDIAN_H | #ifndef BITCOIN_COMPAT_ENDIAN_H | ||||
#define BITCOIN_COMPAT_ENDIAN_H | #define BITCOIN_COMPAT_ENDIAN_H | ||||
#if defined(HAVE_CONFIG_H) | #if defined(HAVE_CONFIG_H) | ||||
#include "config/bitcoin-config.h" | #include "config/bitcoin-config.h" | ||||
#endif | #endif | ||||
#include <cstdint> | |||||
#include "compat/byteswap.h" | #include "compat/byteswap.h" | ||||
#include <cstdint> | |||||
#if defined(HAVE_ENDIAN_H) | #if defined(HAVE_ENDIAN_H) | ||||
#include <endian.h> | #include <endian.h> | ||||
#elif defined(HAVE_SYS_ENDIAN_H) | #elif defined(HAVE_SYS_ENDIAN_H) | ||||
#include <sys/endian.h> | #include <sys/endian.h> | ||||
#endif | #endif | ||||
#if defined(WORDS_BIGENDIAN) | #if defined(WORDS_BIGENDIAN) | ||||
▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines |