Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
454
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
82e41d14
Commit
82e41d14
authored
12 years ago
by
Rémi Denis-Courmont
Browse files
Options
Downloads
Patches
Plain Diff
Win32: try to fix build on some Mingw versions
parent
3dd65c56
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compat/flockfile.c
+13
-9
13 additions, 9 deletions
compat/flockfile.c
with
13 additions
and
9 deletions
compat/flockfile.c
+
13
−
9
View file @
82e41d14
...
...
@@ -29,6 +29,10 @@
# warning Broken SDK: VLC logs will be garbage.
# define _lock_file(s) ((void)(s))
# define _unlock_file(s) ((void)(s))
# undef _getc_nolock
# define _getc_nolock(s) getc(s)
# undef _putc_nolock
# define _putc_nolock(s,c) putc(s,c)
# endif
void
flockfile
(
FILE
*
stream
)
...
...
@@ -52,21 +56,21 @@ int getc_unlocked (FILE *stream)
return
_getc_nolock
(
stream
);
}
int
getchar
_unlocked
(
void
)
int
putc
_unlocked
(
int
c
,
FILE
*
stream
)
{
return
_
getchar
_nolock
();
return
_
putc
_nolock
(
c
,
stream
);
}
int
putc_unlocked
(
int
c
,
FILE
*
stream
)
#else
# error flockfile not implemented on your platform!
#endif
int
getchar_unlocked
(
void
)
{
return
_pu
tc_n
o
lock
(
c
,
stream
);
return
ge
tc_
u
nlock
ed
(
stdin
);
}
int
putchar_unlocked
(
int
c
)
{
return
_
putc
har_no
lock
(
c
);
return
putc
_un
lock
ed
(
c
,
stdout
);
}
#else
# error flockfile not implemented on your platform!
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment