]> gitweb.factorcode.org Git - factor.git/commitdiff
gdbm.ffi: Use alien library finder except on Windows until we can test if it works...
authorDoug Coleman <doug.coleman@gmail.com>
Wed, 12 Mar 2014 20:28:32 +0000 (20:28 +0000)
committerDoug Coleman <doug.coleman@gmail.com>
Wed, 12 Mar 2014 20:29:08 +0000 (20:29 +0000)
extra/gdbm/ffi/ffi.factor

index 3abc15d59f7ccb2900ff7eff3b98a8f390433694..06f96aceeb0769ff98ed6c177ee51ac8411e3604 100755 (executable)
@@ -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