From e09f6b3090fa7f2ed5b82112d4b3b56222089e89 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 31 Jul 2006 05:37:31 +0000 Subject: 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 --- folder_list.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'folder_list.c') 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 -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]) ); -- cgit v1.2.1