fix library loading

db4
Doug Coleman 2008-01-10 10:48:18 -10:00
parent 4c9815d054
commit 794091f44d
1 changed files with 2 additions and 5 deletions

View File

@ -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: