mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress deprecation warnings of MD5 from Xcode 11.1
This commit is contained in:
parent
04333da7be
commit
f405564711
1 changed files with 7 additions and 0 deletions
|
@ -1,6 +1,13 @@
|
||||||
#define COMMON_DIGEST_FOR_OPENSSL 1
|
#define COMMON_DIGEST_FOR_OPENSSL 1
|
||||||
#include <CommonCrypto/CommonDigest.h>
|
#include <CommonCrypto/CommonDigest.h>
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
# pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
/* Suppress deprecation warnings of MD5 from Xcode 11.1 */
|
||||||
|
/* Although we know MD5 is deprecated too, provide just for backward
|
||||||
|
* compatibility, as well as Apple does. */
|
||||||
|
#endif
|
||||||
|
|
||||||
#define MD5_BLOCK_LENGTH CC_MD5_BLOCK_BYTES
|
#define MD5_BLOCK_LENGTH CC_MD5_BLOCK_BYTES
|
||||||
|
|
||||||
static DEFINE_UPDATE_FUNC_FOR_UINT(MD5)
|
static DEFINE_UPDATE_FUNC_FOR_UINT(MD5)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue