aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2011-02-09 17:12:02 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2011-02-09 17:12:02 +0000
commit9586eeeff8e2650612bfec5468afd944c711069c (patch)
tree364db70bd132d6a512c0ce8c5c54161513c4a152
parent68c78791ee4d8040d1bb82dd0f5a60f9a02703ab (diff)
provide declarations if g_canvas.h is missing
svn path=/trunk/externals/iemlib/; revision=14888
-rw-r--r--iemlib2/src/protect_against_open.c17
1 files changed, 17 insertions, 0 deletions
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