From fec133bee6cf5b38b14f2806fda7ab8d5a15ce3a Mon Sep 17 00:00:00 2001 From: Peace-Maker Date: Wed, 2 Jul 2014 21:16:06 +0200 Subject: [PATCH] Fix line ending parsing issues in spcomp on windows fgetpos fails with UNIX \n new lines on windows if the file was open in textual mode. --- sourcepawn/compiler/libpawnc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sourcepawn/compiler/libpawnc.c b/sourcepawn/compiler/libpawnc.c index 32a47c9c..05eb2423 100644 --- a/sourcepawn/compiler/libpawnc.c +++ b/sourcepawn/compiler/libpawnc.c @@ -116,7 +116,7 @@ void *pc_opensrc(char *filename) } #endif - return fopen(filename,"rt"); + return fopen(filename,"rb"); } /* pc_createsrc()