From 3d1175b232dfa924b1faa22ec7f0c6f0dd673ea6 Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Sun, 10 Jan 2016 15:43:47 -0500 Subject: Opened files in binary mode explicitly --- tests/reject.l4 | 2 +- tests/tableopts.l4 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/reject.l4 b/tests/reject.l4 index 27982b1..7eda4a5 100644 --- a/tests/reject.l4 +++ b/tests/reject.l4 @@ -53,7 +53,7 @@ int main ( int argc, char** argv ) #endif #ifdef TEST_HAS_TABLES_EXTERNAL - if((fp = fopen(argv[1],"r"))== NULL) + if((fp = fopen(argv[1],"rb"))== NULL) YY_FATAL_ERROR("could not open tables file for reading"); if(yytables_fload(fp M4_YY_CALL_LAST_ARG) < 0) diff --git a/tests/tableopts.l4 b/tests/tableopts.l4 index bb79407..ac85c29 100644 --- a/tests/tableopts.l4 +++ b/tests/tableopts.l4 @@ -55,7 +55,7 @@ int main ( int argc, char** argv ) #endif #ifdef TEST_HAS_TABLES_EXTERNAL - if((fp = fopen(argv[1],"r"))== NULL) + if((fp = fopen(argv[1],"rb"))== NULL) YY_FATAL_ERROR("could not open tables file for reading"); if(yytables_fload(fp M4_YY_CALL_LAST_ARG) < 0) -- cgit v1.2.3