Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
[linux-2.6-microblaze.git] / tools / include / linux / compiler_types.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __LINUX_COMPILER_TYPES_H
3 #define __LINUX_COMPILER_TYPES_H
4
5 /* Builtins */
6
7 /*
8  * __has_builtin is supported on gcc >= 10, clang >= 3 and icc >= 21.
9  * In the meantime, to support gcc < 10, we implement __has_builtin
10  * by hand.
11  */
12 #ifndef __has_builtin
13 #define __has_builtin(x) (0)
14 #endif
15
16 /* Compiler specific macros. */
17 #ifdef __GNUC__
18 #include <linux/compiler-gcc.h>
19 #endif
20
21 #endif /* __LINUX_COMPILER_TYPES_H */