From f86073733cc8d762c8118ba28e8acef946802502 Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Fri, 4 Sep 2009 07:57:48 -0500 Subject: [PATCH] opengl.glu: fix missing library error on Windows and Linux --- extra/opengl/glu/glu.factor | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extra/opengl/glu/glu.factor b/extra/opengl/glu/glu.factor index fe060e3553..a8404bb13a 100644 --- a/extra/opengl/glu/glu.factor +++ b/extra/opengl/glu/glu.factor @@ -4,12 +4,16 @@ USING: alien alien.libraries alien.syntax kernel sequences words system combinators ; IN: opengl.glu +<< + os { { [ dup macosx? ] [ drop ] } { [ dup windows? ] [ drop ] } { [ dup unix? ] [ drop "glu" "libGLU.so.1" "cdecl" add-library ] } } cond +>> + LIBRARY: glu ! These are defined as structs in glu.h, but we only ever use pointers to them