diff options
author | Lőrinc <lorinc.pap@gmail.com> | 2024-04-09 11:21:57 +0200 |
---|---|---|
committer | Lőrinc <lorinc.pap@gmail.com> | 2024-04-09 11:21:57 +0200 |
commit | a71eadf66bed8d3ea4282c8499f533a8eeed9900 (patch) | |
tree | c61b48f45aa9f6e62a2ff3e0220d44c270e7f566 | |
parent | f348ec7c2a9bec428a0b7a62592a5662c0087750 (diff) | |
download | bitcoin-a71eadf66bed8d3ea4282c8499f533a8eeed9900.tar.xz |
Change MAC_OSX macro to __APPLE__ in crypto package
-rw-r--r-- | src/crypto/sha256.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/sha256.cpp b/src/crypto/sha256.cpp index 4c7bb6f20f..301f22a248 100644 --- a/src/crypto/sha256.cpp +++ b/src/crypto/sha256.cpp @@ -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 @@ -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) { |