mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 00:45:43 +00:00
- Don't append to existing files.
svn path=/trunk/; revision=10546
This commit is contained in:
parent
525f112e0c
commit
e2635a47ed
1 changed files with 8 additions and 0 deletions
|
@ -600,6 +600,7 @@ static void output_dependencies(void)
|
|||
FILE *file = NULL;
|
||||
char buffer[1024];
|
||||
|
||||
#if 0
|
||||
if (Separator && ((file = fopen( OutputFileName, "r+" ))))
|
||||
{
|
||||
while (fgets( buffer, sizeof(buffer), file ))
|
||||
|
@ -619,6 +620,13 @@ static void output_dependencies(void)
|
|||
exit(1);
|
||||
}
|
||||
}
|
||||
#else
|
||||
if (!(file = fopen( OutputFileName, "w" )))
|
||||
{
|
||||
perror( OutputFileName );
|
||||
exit(1);
|
||||
}
|
||||
#endif
|
||||
for( pFile = firstSrc; pFile; pFile = pFile->next)
|
||||
{
|
||||
column = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue