--- gforth/lib.fs 2007/02/17 21:04:15 1.18 +++ gforth/lib.fs 2007/06/30 23:00:35 1.20 @@ -24,6 +24,9 @@ [IFDEF] ffi-call include libffi.fs [ELSE] + .( Neither libffi nor ffcall are available ) cr + abort + .( Using oldlib.fs; incompatible with fflib.fs and libffi.fs) cr include oldlib.fs [THEN] [THEN] @@ -36,8 +39,12 @@ library libc libc.so.6 [ELSE] 2dup s" cygwin" str= [IF] 2drop library libc cygwin1.dll - [ELSE] s" bsd" search nip nip [IF] + [ELSE] 2dup s" bsd" search nip nip [IF] 2drop library libc libc.so + [ELSE] 2dup s" darwin" string-prefix? [IF] 2drop + library libc libc.dylib + [ELSE] 2drop \ or add your stuff here + [THEN] [THEN] [THEN] [THEN]