1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Include CommonCrypto/CommonCryptoError.h for old Xcode

This commit is contained in:
Nobuyoshi Nakada 2021-03-19 18:56:41 +09:00
parent dc7044eb48
commit 9e71f1aa4c
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -497,6 +497,7 @@ fill_random_bytes_urandom(void *seed, size_t size)
#elif defined MAC_OS_X_VERSION_10_7 && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7 #elif defined MAC_OS_X_VERSION_10_7 && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7
# if defined MAC_OS_X_VERSION_10_10 && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_10 # if defined MAC_OS_X_VERSION_10_10 && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_10
# include <CommonCrypto/CommonCryptoError.h> /* for old Xcode */
# include <CommonCrypto/CommonRandom.h> # include <CommonCrypto/CommonRandom.h>
# define USE_COMMON_RANDOM 1 # define USE_COMMON_RANDOM 1
# else # else