diff --git a/include/mbedtls/config.h b/include/mbedtls/config.h index 1626efb08..74b82221d 100644 --- a/include/mbedtls/config.h +++ b/include/mbedtls/config.h @@ -47,7 +47,6 @@ * * Used in: * library/aria.c - * library/timing.c * library/bn_mul.h * * Required by: diff --git a/library/timing.c b/library/timing.c index 764ff7d5d..7964102e6 100644 --- a/library/timing.c +++ b/library/timing.c @@ -38,10 +38,6 @@ #error "This module only works on Unix and Windows, see MBEDTLS_TIMING_C in config.h" #endif -#ifndef asm -#define asm __asm -#endif - #if defined(_WIN32) && !defined(EFIX64) && !defined(EFI32) #include diff --git a/programs/test/benchmark.c b/programs/test/benchmark.c index 2f9a67395..b4b8c283d 100644 --- a/programs/test/benchmark.c +++ b/programs/test/benchmark.c @@ -77,6 +77,10 @@ int main( void ) #include "mbedtls/error.h" +#ifndef asm +#define asm __asm +#endif + #if defined(_WIN32) && !defined(EFIX64) && !defined(EFI32) #include