Skip to content

Commit cf12e6d

Browse files
committed
merge bitcoin#29834: Change MAC_OSX macro to __APPLE__ in crypto
1 parent 643785c commit cf12e6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/crypto/sha256.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include <asm/hwcap.h>
1717
#endif
1818

19-
#if defined(MAC_OSX) && defined(ENABLE_ARM_SHANI)
19+
#if defined(__APPLE__) && defined(ENABLE_ARM_SHANI)
2020
#include <sys/types.h>
2121
#include <sys/sysctl.h>
2222
#endif
@@ -666,7 +666,7 @@ std::string SHA256AutoDetect(sha256_implementation::UseImplementation use_implem
666666
#endif
667667
#endif
668668

669-
#if defined(MAC_OSX)
669+
#if defined(__APPLE__)
670670
int val = 0;
671671
size_t len = sizeof(val);
672672
if (sysctlbyname("hw.optional.arm.FEAT_SHA256", &val, &len, nullptr, 0) == 0) {

0 commit comments

Comments
 (0)