mirror of
https://github.com/westes/flex.git
synced 2026-01-26 15:39:06 +00:00
Opened files in binary mode explicitly
This commit is contained in:
parent
11ea8d73fc
commit
3d1175b232
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user