svn: r5327

original commit: 91add0453f25090c3b11b3fae06a01d65dbb0b3e
This commit is contained in:
Matthew Flatt 2007-01-12 07:09:56 +00:00
parent a8a28dadec
commit eed6ec36e9

View File

@ -132,12 +132,7 @@
;; ----------------------------------------------------------------------------
;; Getting and setting library objects
(define lib-suffix
(case (system-type)
[(unix) "so"]
[(macosx) "dylib"]
[(windows) "dll"]
[else (error 'foreign "unknown system type: ~s" (system-type))]))
(define lib-suffix (bytes->string/latin-1 (subbytes (system-type 'so-suffix) 1)))
(define lib-suffix-re (regexp (string-append "\\." lib-suffix "$")))
(provide (rename get-ffi-lib ffi-lib)