aboutsummaryrefslogtreecommitdiff
path: root/externals/loaders
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-11-23 15:57:28 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-11-23 15:57:28 +0000
commit58dce32d5dd1d25fdf36eb9d174ad1a11a2ac886 (patch)
tree4dfe37328e707882616813f82e6f715afa0d179d /externals/loaders
parent20b7989cd482583e76c13feb661b7a47b2cac5e0 (diff)
fixed build error on Mac OS X 10.3 by #if'ing out 0.40 functions
svn path=/trunk/; revision=6398
Diffstat (limited to 'externals/loaders')
-rw-r--r--externals/loaders/libdir.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/externals/loaders/libdir.c b/externals/loaders/libdir.c
index 1e51ce9a..59b0700f 100644
--- a/externals/loaders/libdir.c
+++ b/externals/loaders/libdir.c
@@ -19,7 +19,7 @@ struct _canvasenvironment
};
-static char *version = "$Revision: 1.4 $";
+static char *version = "$Revision: 1.5 $";
/* This loader opens a directory with a -meta.pd file as a library. In the
* long run, the idea is that one folder will have all of objects files, all
@@ -50,6 +50,7 @@ static int libdir_loader(t_canvas *canvas, char *classname)
/* if this is being called from a canvas, then add the library path to the
* canvas-local path */
+#if (PD_MINOR_VERSION >= 40)
if(canvas)
{
canvasenvironment = canvas_getenv(canvas);
@@ -65,6 +66,7 @@ static int libdir_loader(t_canvas *canvas, char *classname)
post("libdir_loader: added %s to the canvas-local path", classname);
}
else
+#endif
{
if ((fd = open_via_path(".", fullclassname, ".pd",
dirbuf, &nameptr, MAXPDSTRING, 0)) < 0)