Indentation fix, cleanup.
[AROS.git] / tools / MetaMake / compiler.h
blob7ff07298bb3fe78e3243302c8fa8168146e5b74d
1 #ifndef __COMPILER_H
2 #define __COMPILER_H
4 #include <assert.h>
5 #define ASSERT(x) assert(x)
7 #if defined __GNUC__ && defined __GNUC_MINOR__
8 # define __GNUC_PREREQ(maj, min) \
9 ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
10 #else
11 # define __GNUC_PREREQ(maj, min) 0
12 #endif
14 #if __GNUC_PREREQ(3,3)
15 # define __mayalias __attribute__((__may_alias__))
16 #else
17 # define __mayalias
18 #endif
20 #endif