Revision: 9616 http://pure-data.svn.sourceforge.net/pure-data/?rev=9616&view=rev Author: eighthave Date: 2008-03-21 06:48:29 -0700 (Fri, 21 Mar 2008)
Log Message: ----------- fixed compilation error on non-Windows
Modified Paths: -------------- trunk/externals/hcs/folder_list.c
Modified: trunk/externals/hcs/folder_list.c =================================================================== --- trunk/externals/hcs/folder_list.c 2008-03-21 01:50:30 UTC (rev 9615) +++ trunk/externals/hcs/folder_list.c 2008-03-21 13:48:29 UTC (rev 9616) @@ -150,9 +150,9 @@ 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 @@ } 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 */ }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.