diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2008-03-21 13:48:29 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2008-03-21 13:48:29 +0000 |
commit | beb48fb932d7d4107bce1dc58acc0a2e3e1f3f32 (patch) | |
tree | 3f727114edab1085999bbefe7039af1ef73c4212 | |
parent | 942e0b04bdf22a21791baef24503f307a887e86c (diff) |
fixed compilation error on non-Windows
svn path=/trunk/externals/hcs/; revision=9616
-rw-r--r-- | folder_list.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/folder_list.c b/folder_list.c index 613ae26..19af453 100644 --- a/folder_list.c +++ b/folder_list.c @@ -150,9 +150,9 @@ static void folder_list_output(t_folder_list* x) static void folder_list_set(t_folder_list* x, t_symbol *s) { DEBUG(post("folder_list_set");); +#ifdef _WIN32 char *patternBuffer; char envVarBuffer[MAX_PATH]; -#ifdef _WIN32 if( (s->s_name[0] == '~') && (s->s_name[1] == '/')) { patternBuffer = getbytes(MAX_PATH); @@ -166,9 +166,10 @@ static void folder_list_set(t_folder_list* x, t_symbol *s) } ExpandEnvironmentStrings(patternBuffer, envVarBuffer, MAX_PATH - 2); x->x_pattern = gensym(envVarBuffer); -#else +#else // UNIX + // TODO translate env vars to a full path x->x_pattern = s; -#endif +#endif /* _WIN32 */ } |