#ifndef FIO_COMPILER_H | |
#define FIO_COMPILER_H | |
#if __GNUC__ >= 4 | |
#include "compiler-gcc4.h" | |
#elif __GNUC__ == 3 | |
#include "compiler-gcc3.h" | |
#else | |
#error Compiler too old, need gcc at least gcc 3.x | |
#endif | |
#ifndef __must_check | |
#define __must_check | |
#endif | |
#define uninitialized_var(x) x = x | |
#ifndef _weak | |
#ifndef __CYGWIN__ | |
#define _weak __attribute__((weak)) | |
#else | |
#define _weak | |
#endif | |
#endif | |
#endif |