aboutsummaryrefslogtreecommitdiff
path: root/oggread~.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2013-01-22 16:36:53 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2013-01-22 16:36:53 +0000
commit470c3801b00b9f93099d0e98930e6ec2b29f3fe4 (patch)
tree277aabd89ffce6028d057abddd78cfb1294c20ec /oggread~.c
parentf81264ec2223e1a30e8f9f756411f965af662552 (diff)
merge in Win32 UTF-8 file/path supportHEADsvn2git-headexternals/pdogg
svn path=/trunk/externals/pdogg/; revision=16947
Diffstat (limited to 'oggread~.c')
-rw-r--r--oggread~.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/oggread~.c b/oggread~.c
index d0e7c1d..e0ca7f2 100644
--- a/oggread~.c
+++ b/oggread~.c
@@ -290,11 +290,7 @@ static void oggread_open(t_oggread *x, t_symbol *filename)
post("oggread~: previous file closed");
}
/* open file for reading */
-#ifdef WIN32
- if((x->x_file = fopen(filename->s_name, "rb")) < 0)
-#else
- if((x->x_file = fopen(filename->s_name, "r")) < 0)
-#endif
+ if((x->x_file = sys_fopen(filename->s_name, "r")) < 0)
{
post("oggread~: could not open file \"%s\"", filename->s_name);
x->x_eos = 1;