diff --git a/module/ice-9/boot-9.scm b/module/ice-9/boot-9.scm index 3803ba2d3..987a4deb4 100644 --- a/module/ice-9/boot-9.scm +++ b/module/ice-9/boot-9.scm @@ -516,13 +516,14 @@ If there is no handler at all, Guile prints an error and then exits." ;;; {Deprecation} ;;; -;;; Depends on: defmacro -;;; -(defmacro begin-deprecated forms - (if (include-deprecated-features) - `(begin ,@forms) - `(begin))) +(define-syntax begin-deprecated + (lambda (x) + (syntax-case x () + ((_ form form* ...) + (if (include-deprecated-features) + #'(begin form form* ...) + #'(begin))))))