ffi: put version back in for libraries

svn: r15401
This commit is contained in:
Jon Rafkind 2009-07-07 21:54:39 +00:00
parent 6af1ab8050
commit 0a0fd6fe44

View File

@ -7,15 +7,14 @@
[exceptions '()]) [exceptions '()])
(if (null? libs*) (if (null? libs*)
(error 'ffi-try-libs "Could not load any of the libraries in ~a\n~a\n" libs exceptions) (error 'ffi-try-libs "Could not load any of the libraries in ~a\n~a\n" libs exceptions)
(let ([lib (car libs*)]) (let ([lib (caar libs*)]
[version (cdar libs*)])
(with-handlers ([exn:fail:filesystem? (lambda (e) (with-handlers ([exn:fail:filesystem? (lambda (e)
(loop (cdr libs*) (cons e exceptions)))]) (loop (cdr libs*) (cons e exceptions)))])
(ffi-lib lib)))))) (ffi-lib lib version))))))
;; Warning! This interface was written for libWand 6.0.1 (define libwand (ffi-try-libs '("libWand" "6.0.1" "6")
;; No guarantees are made about future compatibility '("libMagickWand" "1")))
;; (define libwand (ffi-lib "libWand" "6.0.1"))
(define libwand (ffi-try-libs "libWand" "libMagickWand"))
;; ===== Main Objects ========================================================= ;; ===== Main Objects =========================================================