blob: 612783b7e180aebf5793ed99788792da54a2b100 [file] [log] [blame]
xiaohu.huange7678d12022-05-10 00:56:48 +08001/*
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__ */