X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/6dfb20397142408cc4adfa437bb12d8aa300270e..e3d18c079e88004db7bca03790fd6d3d9a61a57f:/gffi/interface.lisp?ds=sidebyside diff --git a/gffi/interface.lisp b/gffi/interface.lisp index d89e9a7..72e3c13 100644 --- a/gffi/interface.lisp +++ b/gffi/interface.lisp @@ -424,6 +424,12 @@ (deftype callback () 'symbol)) ;;;; Type expansion +;; A hack to make the TYPE-EXPAND code for SBCL work. +#?+(pkg-config:sbcl>= 1 0 35 15) +(sb-ext:without-package-locks + (setf (symbol-function 'sb-kernel::type-expand) + (lambda (form) (typexpand form)))) + (defun type-expand-1 (form) #+(or cmu sbcl) (let ((def (cond ((symbolp form)