xiaohu.huang | e7678d1 | 2022-05-10 00:56:48 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2021-2022 Amlogic, Inc. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: MIT |
| 5 | */ |
| 6 | |
| 7 | #ifndef __GCC_COMPILER_ATTRIBUTES_H__ |
| 8 | #define __GCC_COMPILER_ATTRIBUTES_H__ |
| 9 | |
| 10 | #ifndef __weak |
| 11 | #define __weak __attribute__((__weak__)) |
| 12 | #endif |
| 13 | |
| 14 | #ifndef __noinline |
| 15 | #define __noinline __attribute__((noinline)) |
| 16 | #endif |
| 17 | |
| 18 | #ifndef __packed |
| 19 | #define __packed __attribute__((__packed__)) |
| 20 | #endif |
| 21 | |
| 22 | #endif /* __GCC_COMPILER_ATTRIBUTES_H__ */ |