From 79394e2992e7eafe42d8110a70555bda95a6846b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Sat, 1 Aug 2020 12:52:35 +0200 Subject: [PATCH] Fix incompatibilities with purr-data --- Sources/ecommon.c | 2 ++ Sources/eobj.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Sources/ecommon.c b/Sources/ecommon.c index 8981751..8e8a99a 100644 --- a/Sources/ecommon.c +++ b/Sources/ecommon.c @@ -507,6 +507,7 @@ t_pd_err binbuf_get_attribute_float(t_binbuf *d, t_symbol *key, float *value) void epd_add_folder(const char* name, const char* folder) { +#if !defined(PDL2ORK) char path[MAXPDSTRING]; t_namelist* var = pd_this->pd_stuff->st_searchpath; while (var) @@ -544,6 +545,7 @@ void epd_add_folder(const char* name, const char* folder) } var = var->nl_next; } +#endif } diff --git a/Sources/eobj.c b/Sources/eobj.c index 4f72e73..b57a400 100644 --- a/Sources/eobj.c +++ b/Sources/eobj.c @@ -298,6 +298,8 @@ void eobj_read(t_eobj* x, t_symbol* s, int argc, t_atom *argv) c->c_widget.w_read(x, s, 1, av); return; } + +#if !defined(PDL2ORK) // Look in the search path var = pd_this->pd_stuff->st_searchpath; while (var) @@ -312,6 +314,7 @@ void eobj_read(t_eobj* x, t_symbol* s, int argc, t_atom *argv) } var = var->nl_next; } +#endif // Nothing work but we don't care if(c->c_widget.w_read)