Convert compatibility defun to a macro.