Lieutenant Dan got me invested in some kind of fruit company.
So then I got a call from him, saying we don't have to worry about money no more. And I said, that's good! One less thing.
This commit is contained in:
@@ -15,6 +15,23 @@
|
||||
#include <byteswap.h>
|
||||
#endif
|
||||
|
||||
#if defined(__APPLE__)
|
||||
|
||||
#if !defined(bswap_16)
|
||||
|
||||
// Mac OS X / Darwin features; we include a check for bswap_16 because if it is already defined, protobuf has
|
||||
// defined these macros for us already; if it isn't, we do it ourselves. In either case, we get the exact same
|
||||
// result regardless which path was taken
|
||||
#include <libkern/OSByteOrder.h>
|
||||
#define bswap_16(x) OSSwapInt16(x)
|
||||
#define bswap_32(x) OSSwapInt32(x)
|
||||
#define bswap_64(x) OSSwapInt64(x)
|
||||
|
||||
#endif // !defined(bswap_16)
|
||||
|
||||
#else
|
||||
// Non-Mac OS X / non-Darwin
|
||||
|
||||
#if HAVE_DECL_BSWAP_16 == 0
|
||||
inline uint16_t bswap_16(uint16_t x)
|
||||
{
|
||||
@@ -44,4 +61,6 @@ inline uint64_t bswap_64(uint64_t x)
|
||||
}
|
||||
#endif // HAVE_DECL_BSWAP64
|
||||
|
||||
#endif // defined(__APPLE__)
|
||||
|
||||
#endif // BITCOIN_COMPAT_BYTESWAP_H
|
||||
|
||||
@@ -39,7 +39,7 @@ class CTxMemPool;
|
||||
class CValidationInterface;
|
||||
class CValidationState;
|
||||
|
||||
class CDiskTxPos;
|
||||
struct CDiskTxPos;
|
||||
class CWallet;
|
||||
|
||||
struct CNodeStateStats;
|
||||
|
||||
Reference in New Issue
Block a user