From 794091f44df87e159ccef129a0fdd6e7da292850 Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Thu, 10 Jan 2008 10:48:18 -1000 Subject: [PATCH] fix library loading --- extra/cairo/cairo.factor | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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: