declare merege() externally, ANSI C fix