]> git.karo-electronics.de Git - karo-tx-linux.git/blob - tools/include/linux/compiler-gcc.h
48af2f10a42d00942b5262391f3f576c9856c0e4
[karo-tx-linux.git] / tools / include / linux / compiler-gcc.h
1 #ifndef _TOOLS_LINUX_COMPILER_H_
2 #error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."
3 #endif
4
5 /*
6  * Common definitions for all gcc versions go here.
7  */
8 #define GCC_VERSION (__GNUC__ * 10000           \
9                      + __GNUC_MINOR__ * 100     \
10                      + __GNUC_PATCHLEVEL__)
11
12 #if GCC_VERSION >= 70000 && !defined(__CHECKER__)
13 # define __fallthrough __attribute__ ((fallthrough))
14 #endif