merge bitcoin#26159: Remove stdlib.h from header checks

This commit is contained in:
Kittywhiskers Van Gogh 2024-11-01 19:52:03 +00:00
parent b112911d6c
commit d2a2713ceb
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD
22 changed files with 24 additions and 24 deletions

View File

@ -1053,7 +1053,7 @@ if test x$TARGET_OS = xdarwin; then
AX_CHECK_LINK_FLAG([[-Wl,-bind_at_load]], [HARDENED_LDFLAGS="$HARDENED_LDFLAGS -Wl,-bind_at_load"],, [[$LDFLAG_WERROR]])
fi
AC_CHECK_HEADERS([endian.h sys/endian.h byteswap.h stdlib.h unistd.h sys/types.h sys/stat.h sys/select.h sys/prctl.h sys/sysctl.h vm/vm_param.h sys/vmmeter.h sys/resources.h])
AC_CHECK_HEADERS([endian.h sys/endian.h byteswap.h unistd.h sys/types.h sys/stat.h sys/select.h sys/prctl.h sys/sysctl.h vm/vm_param.h sys/vmmeter.h sys/resources.h])
AC_CHECK_DECLS([getifaddrs, freeifaddrs],[CHECK_SOCKET],,
[#include <sys/types.h>

View File

@ -9,8 +9,8 @@
#include <array>
#include <cstddef>
#include <cstdlib>
#include <stdint.h>
#include <stdlib.h>
#include <utility>
// classes for ChaCha20 256-bit stream cipher developed by Daniel J. Bernstein

View File

@ -7,8 +7,8 @@
#include <crypto/hmac_sha256.h>
#include <cstdlib>
#include <stdint.h>
#include <stdlib.h>
/** A rfc5869 HKDF implementation with HMAC_SHA256 and fixed key output length of 32 bytes (L=32) */
class CHKDF_HMAC_SHA256_L32

View File

@ -7,8 +7,8 @@
#include <crypto/sha256.h>
#include <cstdlib>
#include <stdint.h>
#include <stdlib.h>
/** A hasher class for HMAC-SHA-256. */
class CHMAC_SHA256

View File

@ -7,8 +7,8 @@
#include <crypto/sha512.h>
#include <cstdlib>
#include <stdint.h>
#include <stdlib.h>
/** A hasher class for HMAC-SHA-512. */
class CHMAC_SHA512

View File

@ -5,8 +5,8 @@
#ifndef BITCOIN_CRYPTO_PKCS5_PBKDF2_HMAC_SHA512_H
#define BITCOIN_CRYPTO_PKCS5_PBKDF2_HMAC_SHA512_H
#include <cstdlib>
#include <stdint.h>
#include <stdlib.h>
/** A rfc2898 implementation of PKCS#5 v2.0 password based encryption key
* derivation function PBKDF2 with HMAC_SHA512. This implementation is

View File

@ -8,8 +8,8 @@
#include <span.h>
#include <cassert>
#include <cstdlib>
#include <stdint.h>
#include <stdlib.h>
#define POLY1305_BLOCK_SIZE 16

View File

@ -5,8 +5,8 @@
#ifndef BITCOIN_CRYPTO_RIPEMD160_H
#define BITCOIN_CRYPTO_RIPEMD160_H
#include <cstdlib>
#include <stdint.h>
#include <stdlib.h>
/** A hasher class for RIPEMD-160. */
class CRIPEMD160

View File

@ -5,8 +5,8 @@
#ifndef BITCOIN_CRYPTO_SHA1_H
#define BITCOIN_CRYPTO_SHA1_H
#include <cstdlib>
#include <stdint.h>
#include <stdlib.h>
/** A hasher class for SHA1. */
class CSHA1

View File

@ -5,8 +5,8 @@
#ifndef BITCOIN_CRYPTO_SHA256_H
#define BITCOIN_CRYPTO_SHA256_H
#include <cstdlib>
#include <stdint.h>
#include <stdlib.h>
#include <string>
/** A hasher class for SHA-256. */

View File

@ -5,8 +5,8 @@
// This is a translation to GCC extended asm syntax from YASM code by Intel
// (available at the bottom of this file).
#include <cstdlib>
#include <stdint.h>
#include <stdlib.h>
#if defined(__x86_64__) || defined(__amd64__)

View File

@ -7,8 +7,8 @@
#include <span.h>
#include <cstdlib>
#include <stdint.h>
#include <stdlib.h>
//! The Keccak-f[1600] transform.
void KeccakF(uint64_t (&st)[25]);

View File

@ -5,8 +5,8 @@
#ifndef BITCOIN_CRYPTO_SHA512_H
#define BITCOIN_CRYPTO_SHA512_H
#include <cstdlib>
#include <stdint.h>
#include <stdlib.h>
/** A hasher class for SHA-512. */
class CSHA512

View File

@ -13,10 +13,10 @@
#include <util/system.h>
#include <cstdio>
#include <cstdlib>
#include <functional>
#include <memory>
#include <stdexcept>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <unistd.h>

View File

@ -10,10 +10,10 @@
#include <util/strencodings.h>
#include <cstdint>
#include <cstdlib>
#include <exception>
#include <iostream>
#include <stdexcept>
#include <stdlib.h>
#include <string.h>
#include <system_error>
#include <unistd.h>

View File

@ -9,9 +9,8 @@
#include <prevector.h>
#include <support/allocators/pool.h>
#include <stdlib.h>
#include <cassert>
#include <cstdlib>
#include <map>
#include <memory>
#include <set>

View File

@ -6,12 +6,12 @@
#define BITCOIN_PREVECTOR_H
#include <assert.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <algorithm>
#include <cstddef>
#include <cstdlib>
#include <type_traits>
#include <utility>

View File

@ -23,7 +23,7 @@
#include <array>
#include <cmath>
#include <stdlib.h>
#include <cstdlib>
#include <thread>
#ifndef WIN32

View File

@ -6,7 +6,7 @@
#ifndef BITCOIN_SUPPORT_CLEANSE_H
#define BITCOIN_SUPPORT_CLEANSE_H
#include <stdlib.h>
#include <cstdlib>
/** Secure overwrite a buffer (possibly containing secret data) with zero-bytes. The write
* operation will not be optimized out by the compiler. */

View File

@ -4,13 +4,13 @@
#include <boost/test/unit_test.hpp>
#include <stdlib.h>
#include <chain.h>
#include <rpc/blockchain.h>
#include <test/util/setup_common.h>
#include <util/string.h>
#include <cstdlib>
/* Equality between doubles is imprecise. Comparison should be done
* with a small threshold of tolerance, rather than exact equality.
*/

View File

@ -4,8 +4,8 @@
#include <event2/event.h>
#include <cstdlib>
#include <map>
#include <stdlib.h>
#include <support/events.h>

View File

@ -5,7 +5,8 @@
#include <util/url.h>
#include <event2/http.h>
#include <stdlib.h>
#include <cstdlib>
#include <string>
std::string urlDecode(const std::string &urlEncoded) {