r25251: move macro defines to the end of replace.h