Add some macros for __attribute__ and use it