mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 11:45:42 +01:00
Fix hardclock() with mingw64
This commit is contained in:
parent
c5c5939577
commit
38433535e3
@ -7,6 +7,8 @@ Security
|
|||||||
Features
|
Features
|
||||||
|
|
||||||
Bugfix
|
Bugfix
|
||||||
|
* Fix hardclock() (only used in the benchmarking program) with some
|
||||||
|
versions of mingw64 (found by kxjhlele).
|
||||||
|
|
||||||
Changes
|
Changes
|
||||||
* Move from SHA-1 to SHA-256 in example programs using signatures
|
* Move from SHA-1 to SHA-256 in example programs using signatures
|
||||||
|
@ -77,8 +77,10 @@ unsigned long hardclock( void )
|
|||||||
#endif /* !POLARSSL_HAVE_HARDCLOCK && POLARSSL_HAVE_ASM &&
|
#endif /* !POLARSSL_HAVE_HARDCLOCK && POLARSSL_HAVE_ASM &&
|
||||||
( _MSC_VER && _M_IX86 ) || __WATCOMC__ */
|
( _MSC_VER && _M_IX86 ) || __WATCOMC__ */
|
||||||
|
|
||||||
|
/* 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 New Issue
Block a user