1 /*
2  * Copyright (c) 2021, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef __COMPILER_EXT_DEFS_H__
9 #define __COMPILER_EXT_DEFS_H__
10 
11 #if defined(__ARMCC_VERSION) || defined(__GNUC__) || defined(__ICCARM__)
12 
13 #ifndef __naked
14 #define __naked __attribute__((naked))
15 #endif
16 
17 #ifndef __section
18 #define __section(x) __attribute__((section(x)))
19 #endif
20 
21 #ifndef __aligned
22 #define __aligned(x) __attribute__((aligned(x)))
23 #endif
24 
25 #ifndef __used
26 #define __used __attribute__((used))
27 #endif
28 
29 #endif /* __ARMCC_VERSION __GNUC__ __ICCARM__*/
30 
31 #endif /* __COMPILER_EXT_DEFS_H__ */
32