From 9586eeeff8e2650612bfec5468afd944c711069c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 9 Feb 2011 17:12:02 +0000 Subject: provide declarations if g_canvas.h is missing svn path=/trunk/externals/iemlib/; revision=14888 --- iemlib2/src/protect_against_open.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/iemlib2/src/protect_against_open.c b/iemlib2/src/protect_against_open.c index 60a6949..90bfdb9 100644 --- a/iemlib2/src/protect_against_open.c +++ b/iemlib2/src/protect_against_open.c @@ -11,8 +11,25 @@ iemlib2 written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2006 #ifdef HAVE_G_CANVAS_H # include "g_canvas.h" #else +/* no g_canvas.h: declare functions and structs ourselves */ EXTERN t_canvas *glist_getcanvas(t_glist *x); EXTERN t_symbol *canvas_realizedollar(t_canvas *x, t_symbol *s); +struct _widgetbehavior +{ + t_method w_getrectfn; + t_method w_displacefn; + t_method w_selectfn; + t_method w_activatefn; + t_method w_deletefn; + t_method w_visfn; + t_method w_clickfn; +#if defined(PD_MAJOR_VERSION) && (PD_MINOR_VERSION >= 37) +#else + t_method w_savefn; + t_method w_propertiesfn; +#endif +}; + #endif -- cgit v1.2.1