diff --git a/extra/cairo/cairo.factor b/extra/cairo/cairo.factor index 5c4907e5bb..96e3daca50 100644 --- a/extra/cairo/cairo.factor +++ b/extra/cairo/cairo.factor @@ -12,14 +12,11 @@ USING: alien alien.syntax combinators system ; IN: cairo -: load-cairo-library ( -- ) - "cairo" { +<< "cairo" { { [ win32? ] [ "cairo.dll" ] } { [ macosx? ] [ "libcairo.dylib" ] } { [ unix? ] [ "libcairo.so.2" ] } - } cond "cdecl" add-library ; parsing - -load-cairo-library + } cond "cdecl" add-library >> ! cairo_status_t C-ENUM: