18 #ifndef LUNCHBOX_COMPILER_H
19 #define LUNCHBOX_COMPILER_H
23 # define LB_ALIGN8( var ) __declspec (align (8)) var;
25 # define LB_ALIGN16( var ) __declspec (align (16)) var;
28 # define LB_ALIGN8( var ) var __attribute__ ((aligned (8)));
30 # define LB_ALIGN16( var ) var __attribute__ ((aligned (16)));
34 # if (( __GNUC__ > 4 ) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 0)) )
35 # define LB_GCC_4_0_OR_LATER
37 # if (( __GNUC__ > 4 ) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 1)) )
38 # define LB_GCC_4_1_OR_LATER
40 # if (( __GNUC__ > 4 ) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2)) )
41 # define LB_GCC_4_2_OR_LATER
43 # if (( __GNUC__ > 4 ) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)) )
44 # define LB_GCC_4_3_OR_LATER
46 # if (( __GNUC__ > 4 ) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) )
47 # define LB_GCC_4_4_OR_LATER
49 # if (( __GNUC__ > 4 ) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 5)) )
50 # define LB_GCC_4_5_OR_LATER
52 # if (( __GNUC__ > 4 ) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 6)) )
53 # define LB_GCC_4_6_OR_LATER
55 # if (( __GNUC__ > 4 ) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)) )
56 # define LB_GCC_4_7_OR_LATER
58 # if (( __GNUC__ > 4 ) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 8)) )
59 # define LB_GCC_4_8_OR_LATER
61 # if (( __GNUC__ > 4 ) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 9)) )
62 # define LB_GCC_4_9_OR_LATER
65 # if (( __GNUC__ < 4 ) || ((__GNUC__ == 4) && (__GNUC_MINOR__ < 3)) )
66 # define LB_GCC_4_3_OR_OLDER
70 #endif //LUNCHBOX_COMPILER_H