diff --git a/include/mbedtls/build_info.h b/include/mbedtls/build_info.h index 413d5c277e..bbfd5d48df 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 ae6625b9e5..46af79f0da 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 */