Fixing test_clang_opt (asm not defined)
Signed-off-by: TRodziewicz <tomasz.rodziewicz@mobica.com>
diff --git a/include/mbedtls/config.h b/include/mbedtls/config.h
index 1626efb..74b8222 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 764ff7d..7964102 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 <windows.h>
diff --git a/programs/test/benchmark.c b/programs/test/benchmark.c
index 2f9a673..b4b8c28 100644
--- a/programs/test/benchmark.c
+++ b/programs/test/benchmark.c
@@ -77,6 +77,10 @@
#include "mbedtls/error.h"
+#ifndef asm
+#define asm __asm
+#endif
+
#if defined(_WIN32) && !defined(EFIX64) && !defined(EFI32)
#include <windows.h>