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
5eb4b094
Commit
5eb4b094
authored
Mar 16, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makedep: Append the separator if not found in an existing makefile.
parent
1e754f5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
makedep.c
tools/makedep.c
+4
-2
No files found.
tools/makedep.c
View file @
5eb4b094
...
@@ -929,15 +929,17 @@ static void output_dependencies(void)
...
@@ -929,15 +929,17 @@ static void output_dependencies(void)
{
{
char
buffer
[
1024
];
char
buffer
[
1024
];
FILE
*
tmp_file
=
create_temp_file
(
&
tmp_name
);
FILE
*
tmp_file
=
create_temp_file
(
&
tmp_name
);
int
found
=
0
;
while
(
fgets
(
buffer
,
sizeof
(
buffer
),
file
))
while
(
fgets
(
buffer
,
sizeof
(
buffer
),
file
)
&&
!
found
)
{
{
if
(
fwrite
(
buffer
,
1
,
strlen
(
buffer
),
tmp_file
)
!=
strlen
(
buffer
))
if
(
fwrite
(
buffer
,
1
,
strlen
(
buffer
),
tmp_file
)
!=
strlen
(
buffer
))
fatal_error
(
"error writing to %s
\n
"
,
tmp_name
);
fatal_error
(
"error writing to %s
\n
"
,
tmp_name
);
if
(
!
strncmp
(
buffer
,
Separator
,
strlen
(
Separator
)
))
break
;
found
=
!
strncmp
(
buffer
,
Separator
,
strlen
(
Separator
)
)
;
}
}
fclose
(
file
);
fclose
(
file
);
file
=
tmp_file
;
file
=
tmp_file
;
if
(
!
found
&&
list_head
(
&
sources
))
fprintf
(
file
,
"
\n
%s
\n
"
,
Separator
);
}
}
else
else
{
{
...
...
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