diff options
author | johnvg | 2016-09-29 12:03:53 +0000 |
---|---|---|
committer | johnvg | 2016-09-29 12:03:53 +0000 |
commit | 528eaa809208f4d3b169d6c2d8f9c36ea00ea6b1 (patch) | |
tree | 5f975a461070e2c1a1e3db03b379d94945005691 /backendC/CleanCompilerSources | |
parent | remove definition of EndOfFile, causes errors with VC 14 if windows.h is incl... (diff) |
use "a" instead of "aw" in fopen and freopen calls, to prevent immediately crashes with VC 14
git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@2742 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d
Diffstat (limited to 'backendC/CleanCompilerSources')
-rw-r--r-- | backendC/CleanCompilerSources/cocl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backendC/CleanCompilerSources/cocl.c b/backendC/CleanCompilerSources/cocl.c index f881fbc..206a605 100644 --- a/backendC/CleanCompilerSources/cocl.c +++ b/backendC/CleanCompilerSources/cocl.c @@ -237,13 +237,13 @@ Bool CallCompiler (int argc, char **argv) } else if (strcmp (argv_i, "-RAE") == 0){ if (++i < argc){ #ifdef _SUN_ - std_error_file_p = fopen (argv[i],"aw"); + std_error_file_p = fopen (argv[i],"a"); if (std_error_file_p!=NULL) StdErrorReopened = True; else std_error_file_p = stderr; #else - freopen (argv[i],"aw",StdError); + freopen (argv[i],"a",StdError); # ifdef CLEAN2 StdErrorReopened = True; # endif @@ -273,13 +273,13 @@ Bool CallCompiler (int argc, char **argv) } else if (strcmp (argv_i, "-RAO") == 0){ if (++i < argc){ #ifdef _SUN_ - std_out_file_p = fopen (argv[i],"aw"); + std_out_file_p = fopen (argv[i],"a"); if (std_out_file_p!=NULL) StdOutReopened = True; else std_out_file_p = stdout; #else - freopen (argv[i],"aw",StdOut); + freopen (argv[i],"a",StdOut); # ifdef CLEAN2 StdOutReopened = True; # endif |