>From c7cfd4c8249fbd86d8c907fb38e4f92599b9ec26 Mon Sep 17 00:00:00 2001 From: Mario Domenech Goulart Date: Tue, 17 Dec 2024 20:13:12 +0100 Subject: [PATCH] Use set-record-printer! instead of define-record-printer define-record-printer has been deprecated since CHICKEN 5.2.0 and is not available in CHICKEN 6. Use set-record-printer! instead (this breaks compatibility with CHICKEN versions < 5.2.0). --- rfc3339.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rfc3339.scm b/rfc3339.scm index 768c035..cfea9a4 100644 --- a/rfc3339.scm +++ b/rfc3339.scm @@ -156,8 +156,9 @@ (c2 hh) ":" (c2 mm) ":" (c2 ss) (cf fs) (tzstr tzoff))))) -(define-record-printer (rfc3339 x out) - (fprintf out "#" (rfc3339->string x))) +(set-record-printer! rfc3339 + (lambda (x out) + (fprintf out "#" (rfc3339->string x)))) ;;; convenience functions -- 2.39.5