merge r3_define.h into r3.h