chiark / gitweb /
Fix for CLisp 2.40
authorespen <espen>
Tue, 12 Dec 2006 14:32:06 +0000 (14:32 +0000)
committerespen <espen>
Tue, 12 Dec 2006 14:32:06 +0000 (14:32 +0000)
gffi/interface.lisp

index 88ce957fdc153a1e534a086381a1381e784780e3..96bbb87b347578140b0645e9b47371b3588b74ee 100644 (file)
@@ -20,7 +20,7 @@
 ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
-;; $Id: interface.lisp,v 1.3 2006-08-16 11:02:45 espen Exp $
+;; $Id: interface.lisp,v 1.4 2006-12-12 14:32:06 espen Exp $
 
 (in-package "GFFI")
 
@@ -166,7 +166,8 @@ (defun foreign-funcall (cname args return-type)
                       (:language :stdc))))
     `(funcall
       (load-time-value
-       (ffi::foreign-library-function ,cname (ffi::foreign-library :default)
+       (ffi::foreign-library-function 
+       ,cname (ffi::foreign-library :default) #?(clisp>= 2 40)nil
        nil (ffi:parse-c-type ',c-function)))
       ,@fparams)))
 
@@ -227,7 +228,7 @@ (defun mkbinding (name return-type &rest arg-types)
                            (system-area-pointer address))))))
          #+clisp
          (ffi::foreign-library-function name 
-          (ffi::foreign-library :default)
+          (ffi::foreign-library :default) #?(clisp>= 2 40)nil
           nil (ffi:parse-c-type c-function)))
         (return-value-translator (from-alien-function return-type)))
     (multiple-value-bind (arg-translators cleanup-funcs)