Opened files in binary mode explicitly

This commit is contained in:
Egor Pugin 2016-01-10 15:43:47 -05:00 committed by Will Estes
parent 11ea8d73fc
commit 3d1175b232
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)