Skip to content

Commit

Permalink
Merge bitcoin/bitcoin#29834: build: Change MAC_OSX macro to __APPLE__…
Browse files Browse the repository at this point in the history
… in crypto

a71eadf Change MAC_OSX macro to __APPLE__ in crypto package (Lőrinc)

Pull request description:

  Split out from bitcoin/bitcoin#29450 (comment) to avoid the uncertainties and simplify review.

ACKs for top commit:
  theuni:
    ACK a71eadf
  fanquake:
    ACK a71eadf

Tree-SHA512: b6a7bd7ca95585dd9110cefe7c1213f4a1a72bdfc88670abf4a0d9a8bbc12e093544524adce46aa9ca714c472d417f74ca4a678af682ed2488053059434eaa02
  • Loading branch information
fanquake committed Apr 9, 2024
2 parents bf031a5 + a71eadf commit 0b4218e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crypto/sha256.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <asm/hwcap.h>
#endif

#if defined(MAC_OSX) && defined(ENABLE_ARM_SHANI)
#if defined(__APPLE__) && defined(ENABLE_ARM_SHANI)
#include <sys/types.h>
#include <sys/sysctl.h>
#endif
Expand Down Expand Up @@ -670,7 +670,7 @@ std::string SHA256AutoDetect(sha256_implementation::UseImplementation use_implem
#endif
#endif

#if defined(MAC_OSX)
#if defined(__APPLE__)
int val = 0;
size_t len = sizeof(val);
if (sysctlbyname("hw.optional.arm.FEAT_SHA256", &val, &len, nullptr, 0) == 0) {
Expand Down

0 comments on commit 0b4218e

Please sign in to comment.