mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-23 23:21:04 +00:00
Work around a compiler bug on OS X.
This commit is contained in:
parent
516eb623df
commit
57291a7019
|
@ -4,6 +4,8 @@ PolarSSL ChangeLog
|
|||
Changes
|
||||
* Introduced POLARSSL_HAVE_READDIR_R for systems without it
|
||||
* Improvements to the CMake build system, contributed by Julian Ospald.
|
||||
* Work around a bug of the version of Clang shipped by Apple with Mavericks
|
||||
that prevented bignum.c from compiling. (Reported by Rafael Baptista.)
|
||||
|
||||
Security
|
||||
* Forbid change of server certificate during renegotiation to prevent
|
||||
|
|
|
@ -1114,7 +1114,14 @@ int mpi_div_mpi( mpi *Q, mpi *R, const mpi *A, const mpi *B )
|
|||
Z.p[i - t - 1] = ~0;
|
||||
else
|
||||
{
|
||||
#if defined(POLARSSL_HAVE_UDBL)
|
||||
/*
|
||||
* The version of Clang shipped by Apple with Mavericks can't
|
||||
* handle 128-bit division properly. Disable 128-bits division
|
||||
* for Clang on Apple for now, while waiting for more input on the
|
||||
* exact version(s) affected and their identification macros.
|
||||
*/
|
||||
#if defined(POLARSSL_HAVE_UDBL) && \
|
||||
! ( defined(__x86_64__) && defined(__clang__) && defined(__APPLE__) )
|
||||
t_udbl r;
|
||||
|
||||
r = (t_udbl) X.p[i] << biL;
|
||||
|
|
Loading…
Reference in a new issue