fix build on older macOs releases, aligned_alloc only from catalina.
closes #549
This commit is contained in:
committed by
David Carlier
parent
ec2265486e
commit
40e0507a59
@@ -195,6 +195,7 @@ static bool os_random_buf(void* buf, size_t buf_len) {
|
||||
#elif defined(__APPLE__)
|
||||
#include <AvailabilityMacros.h>
|
||||
#if defined(MAC_OS_X_VERSION_10_10) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10
|
||||
#include <CommonCrypto/CommonCryptoError.h>
|
||||
#include <CommonCrypto/CommonRandom.h>
|
||||
#endif
|
||||
static bool os_random_buf(void* buf, size_t buf_len) {
|
||||
|
||||
Reference in New Issue
Block a user