From fa96026a0e760fab0149b2adb08a34d3b7d51438 Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Tue, 10 Jan 2023 11:14:02 +0000 Subject: [PATCH] Move definition of asm out of public header Signed-off-by: Dave Rodgman --- include/mbedtls/build_info.h | 7 ------- library/common.h | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/mbedtls/build_info.h b/include/mbedtls/build_info.h index 413d5c277..bbfd5d48d 100644 --- a/include/mbedtls/build_info.h +++ b/include/mbedtls/build_info.h @@ -59,13 +59,6 @@ #define inline __inline #endif -/* Define `asm` for compilers which don't define it. */ -/* *INDENT-OFF* */ -#ifndef asm -#define asm __asm__ -#endif -/* *INDENT-ON* */ - #if !defined(MBEDTLS_CONFIG_FILE) #include "mbedtls/mbedtls_config.h" #else diff --git a/library/common.h b/library/common.h index ae6625b9e..46af79f0d 100644 --- a/library/common.h +++ b/library/common.h @@ -142,4 +142,11 @@ inline void mbedtls_xor(unsigned char *r, const unsigned char *a, const unsigned #define /*no-check-names*/ __func__ __FUNCTION__ #endif +/* Define `asm` for compilers which don't define it. */ +/* *INDENT-OFF* */ +#ifndef asm +#define asm __asm__ +#endif +/* *INDENT-ON* */ + #endif /* MBEDTLS_LIBRARY_COMMON_H */