safer uint define
include config.h in r3.h