mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Change MAC_OSX macro to __APPLE__ in crypto package
This commit is contained in:
parent
f348ec7c2a
commit
a71eadf66b
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue