gdbm.ffi: Use alien library finder except on Windows until we can test if it works there.

db4
Doug Coleman 2014-03-12 20:28:32 +00:00
parent 9c1dd0ad58
commit 7c06afa219
1 changed files with 5 additions and 7 deletions

View File

@ -1,14 +1,12 @@
! Copyright (C) 2010 Dmitry Shubin.
! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.c-types alien.libraries alien.syntax classes.struct
combinators system ;
USING: alien alien.c-types alien.libraries alien.libraries.finder
alien.syntax classes.struct combinators kernel system ;
IN: gdbm.ffi
<< "libgdbm" {
{ [ os macosx? ] [ "libgdbm.dylib" ] }
{ [ os unix? ] [ "libgdbm.so.3" ] }
{ [ os windows? ] [ "gdbm3.dll" ] }
} cond cdecl add-library >>
<< "libgdbm"
os windows? [ "gdbm3.dll" ] [ "gdbm" find-library ] if
cdecl add-library >>
LIBRARY: libgdbm