]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/db/postgresql/ffi/ffi.factor
factor: more top level forms.
[factor.git] / basis / db / postgresql / ffi / ffi.factor
index 0ad686c8ce4cce85a381a2f790b34fe3c9204142..ce4ecf7cc54c4bdbb64954a29e8280b154647834 100644 (file)
@@ -5,11 +5,9 @@ USING: alien alien.c-types alien.libraries alien.syntax
 combinators system ;
 IN: db.postgresql.ffi
 
-<< "postgresql" {
-    { [ os windows? ] [ "libpq.dll" ] }
-    { [ os macosx? ] [ "libpq.dylib" ] }
-    { [ os unix? ] [ "libpq.so" ] }
-} cond cdecl add-library >>
+LIBRARY-UNIX: postgresql cdecl "libpq.so"
+LIBRARY-MACOSX: postgresql cdecl "libpq.dylib"
+LIBRARY-WINDOWS: postgresql cdecl "libpq.dll"
 
 ! ConnSatusType
 CONSTANT: CONNECTION_OK                     0x0