Change MAC_OSX macro to __APPLE__ in crypto package

This commit is contained in:
Lőrinc committed 2024-04-09 11:21:57 +02:00
1 parent f348ec7c2a
commit a71eadf66b
1 file changed
+2 -2
+2 -2
View File
@@ -20,7 +20,7 @@
#include <asm/hwcap.h> #include <asm/hwcap.h>
#endif #endif
#if defined(MAC_OSX) && defined(ENABLE_ARM_SHANI) #if defined(__APPLE__) && defined(ENABLE_ARM_SHANI)
#include <sys/types.h> #include <sys/types.h>
#include <sys/sysctl.h> #include <sys/sysctl.h>
#endif #endif
@@ -670,7 +670,7 @@ std::string SHA256AutoDetect(sha256_implementation::UseImplementation use_implem
#endif #endif
#endif #endif
#if defined(MAC_OSX) #if defined(__APPLE__)
int val = 0; int val = 0;
size_t len = sizeof(val); size_t len = sizeof(val);
if (sysctlbyname("hw.optional.arm.FEAT_SHA256", &val, &len, nullptr, 0) == 0) { if (sysctlbyname("hw.optional.arm.FEAT_SHA256", &val, &len, nullptr, 0) == 0) {