Skip to content

Commit b682aea

Browse files
committed
merge bitcoin#26159: Remove stdlib.h from header checks
1 parent 3c2c6da commit b682aea

22 files changed

+24
-24
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ if test x$TARGET_OS = xdarwin; then
10351035
AX_CHECK_LINK_FLAG([[-Wl,-fixup_chains]], [HARDENED_LDFLAGS="$HARDENED_LDFLAGS -Wl,-fixup_chains"], [], [[$LDFLAG_WERROR]])
10361036
fi
10371037

1038-
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])
1038+
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])
10391039

10401040
AC_CHECK_DECLS([getifaddrs, freeifaddrs],[CHECK_SOCKET],,
10411041
[#include <sys/types.h>

src/crypto/chacha20.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
#include <array>
1111
#include <cstddef>
12+
#include <cstdlib>
1213
#include <stdint.h>
13-
#include <stdlib.h>
1414
#include <utility>
1515

1616
// classes for ChaCha20 256-bit stream cipher developed by Daniel J. Bernstein

src/crypto/hkdf_sha256_32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
#include <crypto/hmac_sha256.h>
99

10+
#include <cstdlib>
1011
#include <stdint.h>
11-
#include <stdlib.h>
1212

1313
/** A rfc5869 HKDF implementation with HMAC_SHA256 and fixed key output length of 32 bytes (L=32) */
1414
class CHKDF_HMAC_SHA256_L32

src/crypto/hmac_sha256.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
#include <crypto/sha256.h>
99

10+
#include <cstdlib>
1011
#include <stdint.h>
11-
#include <stdlib.h>
1212

1313
/** A hasher class for HMAC-SHA-256. */
1414
class CHMAC_SHA256

src/crypto/hmac_sha512.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
#include <crypto/sha512.h>
99

10+
#include <cstdlib>
1011
#include <stdint.h>
11-
#include <stdlib.h>
1212

1313
/** A hasher class for HMAC-SHA-512. */
1414
class CHMAC_SHA512

src/crypto/pkcs5_pbkdf2_hmac_sha512.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#ifndef BITCOIN_CRYPTO_PKCS5_PBKDF2_HMAC_SHA512_H
66
#define BITCOIN_CRYPTO_PKCS5_PBKDF2_HMAC_SHA512_H
77

8+
#include <cstdlib>
89
#include <stdint.h>
9-
#include <stdlib.h>
1010

1111
/** A rfc2898 implementation of PKCS#5 v2.0 password based encryption key
1212
* derivation function PBKDF2 with HMAC_SHA512. This implementation is

src/crypto/poly1305.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
#include <span.h>
99

1010
#include <cassert>
11+
#include <cstdlib>
1112
#include <stdint.h>
12-
#include <stdlib.h>
1313

1414
#define POLY1305_BLOCK_SIZE 16
1515

src/crypto/ripemd160.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#ifndef BITCOIN_CRYPTO_RIPEMD160_H
66
#define BITCOIN_CRYPTO_RIPEMD160_H
77

8+
#include <cstdlib>
89
#include <stdint.h>
9-
#include <stdlib.h>
1010

1111
/** A hasher class for RIPEMD-160. */
1212
class CRIPEMD160

src/crypto/sha1.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#ifndef BITCOIN_CRYPTO_SHA1_H
66
#define BITCOIN_CRYPTO_SHA1_H
77

8+
#include <cstdlib>
89
#include <stdint.h>
9-
#include <stdlib.h>
1010

1111
/** A hasher class for SHA1. */
1212
class CSHA1

src/crypto/sha256.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#ifndef BITCOIN_CRYPTO_SHA256_H
66
#define BITCOIN_CRYPTO_SHA256_H
77

8+
#include <cstdlib>
89
#include <stdint.h>
9-
#include <stdlib.h>
1010
#include <string>
1111

1212
/** A hasher class for SHA-256. */

0 commit comments

Comments
 (0)