mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
e16c22fe02
`<attributes.h>` has been included in anticipation of the following commit.
27 lines
742 B
C
27 lines
742 B
C
// Copyright (c) 2009-2010 Satoshi Nakamoto
|
|
// Copyright (c) 2009-2020 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_ATTRIBUTES_H
|
|
#define BITCOIN_ATTRIBUTES_H
|
|
|
|
#if defined(__clang__)
|
|
# if __has_attribute(lifetimebound)
|
|
# define LIFETIMEBOUND [[clang::lifetimebound]]
|
|
# else
|
|
# define LIFETIMEBOUND
|
|
# endif
|
|
#else
|
|
# define LIFETIMEBOUND
|
|
#endif
|
|
|
|
#if defined(__GNUC__)
|
|
# define ALWAYS_INLINE inline __attribute__((always_inline))
|
|
#elif defined(_MSC_VER)
|
|
# define ALWAYS_INLINE __forceinline
|
|
#else
|
|
# error No known always_inline attribute for this platform.
|
|
#endif
|
|
|
|
#endif // BITCOIN_ATTRIBUTES_H
|