Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
13a07b99
Commit
13a07b99
authored
Jul 15, 2000
by
Peter Ganten
Committed by
Alexandre Julliard
Jul 15, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to unlink output file before opening it.
parent
235d39cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
main.c
tools/winebuild/main.c
+6
-0
No files found.
tools/winebuild/main.c
View file @
13a07b99
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
#include <assert.h>
#include <assert.h>
#include <stdio.h>
#include <stdio.h>
#include <unistd.h>
#include <unistd.h>
#include <errno.h>
#include "winnt.h"
#include "winnt.h"
#include "build.h"
#include "build.h"
...
@@ -113,6 +114,11 @@ static void do_pic(void)
...
@@ -113,6 +114,11 @@ static void do_pic(void)
static
void
do_output
(
const
char
*
arg
)
static
void
do_output
(
const
char
*
arg
)
{
{
if
(
(
unlink
(
arg
)
)
==
-
1
&&
(
errno
!=
ENOENT
)
)
{
fprintf
(
stderr
,
"Unable to create output file '%s'
\n
"
,
arg
);
exit
(
1
);
}
if
(
!
(
output_file
=
fopen
(
arg
,
"w"
)))
if
(
!
(
output_file
=
fopen
(
arg
,
"w"
)))
{
{
fprintf
(
stderr
,
"Unable to create output file '%s'
\n
"
,
arg
);
fprintf
(
stderr
,
"Unable to create output file '%s'
\n
"
,
arg
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment