mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-08 08:15:32 +00:00
Fix hardclock with some versions of mingw64
Backport of 383433535 from the 1.3 branch
This commit is contained in:
parent
a9553a8c49
commit
7e82884811
|
@ -7,6 +7,8 @@ Security
|
||||||
crash it remotely (found by Caj Larsson).
|
crash it remotely (found by Caj Larsson).
|
||||||
|
|
||||||
Bugfix
|
Bugfix
|
||||||
|
* Fix hardclock() (only used in the benchmarking program) with some
|
||||||
|
versions of mingw64 (found by kxjhlele).
|
||||||
* Fix warnings from mingw64 in timing.c (found by kxjklele).
|
* Fix warnings from mingw64 in timing.c (found by kxjklele).
|
||||||
* Fix potential unintended sign extension in asn1_get_len() on 64-bit
|
* Fix potential unintended sign extension in asn1_get_len() on 64-bit
|
||||||
platforms (found with Coverity Scan).
|
platforms (found with Coverity Scan).
|
||||||
|
|
|
@ -65,8 +65,10 @@ unsigned long hardclock( void )
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* some versions of mingw-64 have 32-bit longs even on x84_64 */
|
||||||
#if !defined(POLARSSL_HAVE_HARDCLOCK) && defined(POLARSSL_HAVE_ASM) && \
|
#if !defined(POLARSSL_HAVE_HARDCLOCK) && defined(POLARSSL_HAVE_ASM) && \
|
||||||
defined(__GNUC__) && defined(__i386__)
|
defined(__GNUC__) && ( defined(__i386__) || ( \
|
||||||
|
( defined(__amd64__) || defined( __x86_64__) ) && __SIZEOF_LONG__ == 4 ) )
|
||||||
|
|
||||||
#define POLARSSL_HAVE_HARDCLOCK
|
#define POLARSSL_HAVE_HARDCLOCK
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue