Commit | Line | Data |
---|---|---|
4fee8096 JA |
1 | #ifndef FIO_COMPILER_H |
2 | #define FIO_COMPILER_H | |
3 | ||
4 | #if __GNUC__ >= 4 | |
5 | #include "compiler-gcc4.h" | |
73e07acd | 6 | #elif __GNUC__ == 3 |
4fee8096 JA |
7 | #include "compiler-gcc3.h" |
8 | #else | |
9 | #error Compiler too old, need gcc at least gcc 3.x | |
10 | #endif | |
11 | ||
993cca04 JA |
12 | #ifndef __must_check |
13 | #define __must_check | |
14 | #endif | |
15 | ||
f3f552b9 JA |
16 | #define uninitialized_var(x) x = x |
17 | ||
c3d3178b | 18 | #ifndef _weak |
9b836561 | 19 | #ifndef __CYGWIN__ |
c3d3178b | 20 | #define _weak __attribute__((weak)) |
9b836561 | 21 | #else |
c3d3178b | 22 | #define _weak |
9b836561 | 23 | #endif |
3b2e1464 | 24 | #endif |
ed80ddf6 | 25 | |
4fee8096 | 26 | #endif |