Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
82e41d14
Commit
82e41d14
authored
Oct 22, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win32: try to fix build on some Mingw versions
parent
3dd65c56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
compat/flockfile.c
compat/flockfile.c
+13
-9
No files found.
compat/flockfile.c
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
_putc_nolock
(
c
,
stream
);
return
getc_unlocked
(
stdin
);
}
int
putchar_unlocked
(
int
c
)
{
return
_putchar_nolock
(
c
);
return
putc_unlocked
(
c
,
stdout
);
}
#else
# error flockfile not implemented on your platform!
#endif
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