aboutsummaryrefslogtreecommitdiff
path: root/folder_list.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-07-31 05:37:31 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-07-31 05:37:31 +0000
commite09f6b3090fa7f2ed5b82112d4b3b56222089e89 (patch)
tree4f000b04852009174c3b5aa0e21c5d161c0c5b53 /folder_list.c
parentda1695d3e9b3215175c898b9c646df3726bb9da2 (diff)
GLOB_ABORTED and GLOB_NOMATCH don't exist in Mac OS X before 10.4, so check to see if they exist before using them
svn path=/trunk/externals/hcs/; revision=5440
Diffstat (limited to 'folder_list.c')
-rw-r--r--folder_list.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/folder_list.c b/folder_list.c
index b406702..bd42e90 100644
--- a/folder_list.c
+++ b/folder_list.c
@@ -36,7 +36,7 @@
#include <string.h>
-static char *version = "$Revision: 1.11 $";
+static char *version = "$Revision: 1.12 $";
t_int folder_list_instance_count;
@@ -127,12 +127,16 @@ static void folder_list_output(t_folder_list* x)
case GLOB_NOSPACE:
error("[folder_list] out of memory for \"%s\"",x->x_pattern->s_name);
break;
+#ifdef GLOB_ABORTED
case GLOB_ABORTED:
error("[folder_list] aborted \"%s\"",x->x_pattern->s_name);
break;
+#endif
+#ifdef GLOB_NOMATCH
case GLOB_NOMATCH:
error("[folder_list] nothing found for \"%s\"",x->x_pattern->s_name);
break;
+#endif
}
for(i = 0; i < glob_buffer.gl_pathc; i++)
outlet_symbol( x->x_obj.ob_outlet, gensym(glob_buffer.gl_pathv[i]) );