The check currently tests if major > 2 && minor >= 1 (since the wanted
attribute functions were likely available since GCC 3.1). That of course
failing if a newer x.0 release of the compiler is used, like GCC 8.0.
So let's fix the check to handle all newer compiler versions correctly.
#endif
#ifndef STATIC_INLINE
-#if __GNUC__ - 1 > 1 && __GNUC_MINOR__ - 1 >= 0
+#if __GNUC__ - 1 > 2 || (__GNUC__ - 1 == 2 && __GNUC_MINOR__ - 1 >= 0)
#define STATIC_INLINE static __inline__ __attribute__ ((always_inline))
#define NOINLINE __attribute__ ((noinline))
#define NORETURN __attribute__ ((noreturn))