From 6bf58497fe25026cb7adcdf1a408f24c8ba955e5 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 17 Jan 2013 23:15:09 +0000 Subject: replace POSIX fopen() with Pd's new sys_fopen() to get cross-platform unicode filename support (Pd-extended 0.43.4/Pd-vanilla 0.44) svn path=/trunk/externals/unauthorized/; revision=16902 --- pianoroll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pianoroll.c') diff --git a/pianoroll.c b/pianoroll.c index 8a5269e..560afb9 100644 --- a/pianoroll.c +++ b/pianoroll.c @@ -468,7 +468,7 @@ static void pianoroll_save_file(t_pianoroll *x, t_symbol *ffile) FILE *tmph; t_int si; - if ( ( tmph = fopen( ffile->s_name, "w" ) ) == NULL ) + if ( ( tmph = sys_fopen( ffile->s_name, "w" ) ) == NULL ) { post( "pianoroll : could not open file : %s for writing", ffile->s_name ); return; @@ -497,7 +497,7 @@ static void pianoroll_load(t_pianoroll *x, t_symbol *ffile) FILE *tmph; t_int si; - if ( ( tmph = fopen( ffile->s_name, "r" ) ) == NULL ) + if ( ( tmph = sys_fopen( ffile->s_name, "r" ) ) == NULL ) { post( "pianoroll : could not open file : %s for reading", ffile->s_name ); return; -- cgit v1.2.1