Use fopen with binary mode everywhere (for Windows compat)

This commit is contained in:
Jonas Kulla 2014-11-17 07:18:39 +01:00
parent f7a3e3c5d2
commit 5c3f4b905a
4 changed files with 6 additions and 6 deletions

View file

@ -192,7 +192,7 @@ static void
runCustomScript(mrb_state *mrb, mrbc_context *ctx, const char *filename)
{
/* Execute custom script */
FILE *f = fopen(filename, "r");
FILE *f = fopen(filename, "rb");
if (!f)
{
@ -217,7 +217,7 @@ static void
runMrbFile(mrb_state *mrb, const char *filename)
{
/* Execute compiled script */
FILE *f = fopen(filename, "r");
FILE *f = fopen(filename, "rb");
if (!f)
{