merge macros.h to common/macros.h