aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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