Skip to content

Commit a71eadf

Browse files
author
Lőrinc
committed
Change MAC_OSX macro to __APPLE__ in crypto package
1 parent f348ec7 commit a71eadf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/crypto/sha256.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <asm/hwcap.h>
2121
#endif
2222

23-
#if defined(MAC_OSX) && defined(ENABLE_ARM_SHANI)
23+
#if defined(__APPLE__) && defined(ENABLE_ARM_SHANI)
2424
#include <sys/types.h>
2525
#include <sys/sysctl.h>
2626
#endif
@@ -670,7 +670,7 @@ std::string SHA256AutoDetect(sha256_implementation::UseImplementation use_implem
670670
#endif
671671
#endif
672672

673-
#if defined(MAC_OSX)
673+
#if defined(__APPLE__)
674674
int val = 0;
675675
size_t len = sizeof(val);
676676
if (sysctlbyname("hw.optional.arm.FEAT_SHA256", &val, &len, nullptr, 0) == 0) {

0 commit comments

Comments
 (0)