mbedtls/programs/test
Martin Storsjö 5c1479d04a Use QueryPerformanceCounter as fallback timer on non-x86 mingw
The QueryPerformanceCounter implementation previously was within
defined(_MSC_VER), but it works just as well on other Windows
toolchains, like mingw.

For most common mingw x86 build configurations, one of the earlier
inline assembly implementations would end up used, but for non-x86
(arm, aarch64), it would end up falling back on the gettimeofday
implementation.

This implementation did build successfully (as mingw toolchains do
provide gettimeofday, contrary to MSVC), but the header providing
gettimeofday, <sys/time.h>, wasn't ever included when building
targeting Windows - thus the function was called without a proper
declaration.

Clang 15 changes such implicit function declarations into a hard
error by default, when building in C99 mode (or newer) [1].
(While Clang 15 still is under development, this may still change
before it's released, but it's a valid issue in any case.)

[1] 7d644e1215

Signed-off-by: Martin Storsjö <martin@martin.st>
2022-04-22 13:12:52 +03:00
..
cmake_package Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
cmake_package_install Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
cmake_subproject Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
benchmark.c Use QueryPerformanceCounter as fallback timer on non-x86 mingw 2022-04-22 13:12:52 +03:00
CMakeLists.txt Use CMake's knowledge of what system library has dlopen() 2021-11-10 19:10:27 +01:00
dlopen.c Fix the build when MBEDTLS_PLATFORM_C is unset 2022-02-25 15:26:40 +01:00
dlopen_demo.sh More explicit output for the test program 2021-11-10 21:08:28 +01:00
generate_cpp_dummy_build.sh Add documentation 2021-08-05 15:23:00 +02:00
query_compile_time_config.c fix help message issues 2021-12-10 23:38:57 +08:00
query_config.h Add list_config generation 2021-12-10 16:30:57 +08:00
selftest.c Improve fix for printf specifier 2022-04-11 12:59:45 +01:00
udp_proxy.c Seed the PRNG even if time() isn't available 2022-04-08 04:46:41 -04:00
udp_proxy_wrapper.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
zeroize.c Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00