diff options
Diffstat (limited to 'firmware/include')
-rw-r--r-- | firmware/include/gcc_extensions.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/include/gcc_extensions.h b/firmware/include/gcc_extensions.h index 7109edaaf6..2735d6e7b6 100644 --- a/firmware/include/gcc_extensions.h +++ b/firmware/include/gcc_extensions.h | |||
@@ -57,4 +57,13 @@ | |||
57 | #define FORCE_INLINE inline | 57 | #define FORCE_INLINE inline |
58 | #endif | 58 | #endif |
59 | 59 | ||
60 | |||
61 | /* Version information from http://ohse.de/uwe/articles/gcc-attributes.html */ | ||
62 | #if defined(__GNUC__) && (__GNUC__ >= 4 || \ | ||
63 | (__GNUC__ >= 3 && __GNUC_MINOR__ >= 1)) | ||
64 | #define USED_ATTR __attribute__((used)) | ||
65 | #else | ||
66 | #define USED_ATTR | ||
67 | #endif | ||
68 | |||
60 | #endif /* _GCC_EXTENSIONS_H_ */ | 69 | #endif /* _GCC_EXTENSIONS_H_ */ |