aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2011-02-09 11:18:45 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2011-02-09 11:18:45 +0000
commit51cc920c41369d50f2bff6b8afea107d791536ac (patch)
treeb8ec7aabfc353d02ad322f05363aae346c8c7836
parent005dbcec2baa097aa66e02ee9df15e3e521381d2 (diff)
protect against non-existance of g_canvas.h
svn path=/trunk/externals/iemlib/; revision=14881
-rw-r--r--iemlib2/src/dollarg.c6
-rw-r--r--iemlib2/src/protect_against_open.c10
2 files changed, 13 insertions, 3 deletions
diff --git a/iemlib2/src/dollarg.c b/iemlib2/src/dollarg.c
index 102a680..9461081 100644
--- a/iemlib2/src/dollarg.c
+++ b/iemlib2/src/dollarg.c
@@ -4,7 +4,11 @@
iemlib2 written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2006 */
#include "m_pd.h"
-#include "g_canvas.h"
+#ifdef HAVE_G_CANVAS_H
+# include "g_canvas.h"
+#else
+EXTERN t_canvas *glist_getcanvas(t_glist *x);
+#endif
#include "iemlib.h"
diff --git a/iemlib2/src/protect_against_open.c b/iemlib2/src/protect_against_open.c
index fcb27da..60a6949 100644
--- a/iemlib2/src/protect_against_open.c
+++ b/iemlib2/src/protect_against_open.c
@@ -6,10 +6,16 @@ iemlib2 written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2006
#include "m_pd.h"
#include "iemlib.h"
-#include "g_canvas.h"
-#include "g_all_guis.h"
#include <string.h>
+#ifdef HAVE_G_CANVAS_H
+# include "g_canvas.h"
+#else
+EXTERN t_canvas *glist_getcanvas(t_glist *x);
+EXTERN t_symbol *canvas_realizedollar(t_canvas *x, t_symbol *s);
+#endif
+
+
#ifdef _MSC_VER
#include <io.h>
#else