Change MAC_OSX macro to __APPLE__ in crypto package

This commit is contained in:
Lőrinc 2024-04-09 11:21:57 +02:00
parent f348ec7c2a
commit a71eadf66b
1 changed files with 2 additions and 2 deletions

View File

@ -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) {