Xinyu Zhang | 3a45324 | 2021-04-16 17:57:09 +0800 | [diff] [blame] | 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 | #endif /* __ARMCC_VERSION __GNUC__ __ICCARM__*/ |
| 26 | |
| 27 | #endif /* __COMPILER_EXT_DEFS_H__ */ |