Commit | Line | Data |
---|---|---|
1 | #ifndef FIO_COMPILER_GCC4_H | |
2 | #define FIO_COMPILER_GCC4_H | |
3 | ||
4 | #ifndef __must_check | |
5 | #define __must_check __attribute__((warn_unused_result)) | |
6 | #endif | |
7 | ||
8 | #define GCC_VERSION (__GNUC__ * 10000 \ | |
9 | + __GNUC_MINOR__ * 100 \ | |
10 | + __GNUC_PATCHLEVEL__) | |
11 | ||
12 | #if GCC_VERSION >= 40300 | |
13 | #define __compiletime_warning(message) __attribute__((warning(message))) | |
14 | #define __compiletime_error(message) __attribute__((error(message))) | |
15 | #endif | |
16 | ||
17 | #endif |