compiler-gcc.h 413 B

1234567891011121314
  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. * Common definitions for all gcc versions go here.
  6. */
  7. #define GCC_VERSION (__GNUC__ * 10000 \
  8. + __GNUC_MINOR__ * 100 \
  9. + __GNUC_PATCHLEVEL__)
  10. #if GCC_VERSION >= 70000 && !defined(__CHECKER__)
  11. # define __fallthrough __attribute__ ((fallthrough))
  12. #endif