Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
c84e332e
Commit
c84e332e
authored
Nov 09, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a bug. Fix compilation on Win32.
parent
9020d59c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
modules/access_filter/dump.c
modules/access_filter/dump.c
+13
-2
No files found.
modules/access_filter/dump.c
View file @
c84e332e
...
...
@@ -233,10 +233,21 @@ static int Seek (access_t *access, int64_t offset)
}
#if
def WIN32
#if
ndef HAVE_LOCALTIME_R
static
inline
struct
tm
*
localtime_r
(
const
time_t
*
now
,
struct
tm
*
res
)
{
return
_localtime_s
(
res
,
now
)
?
NULL
:
res
;
struct
tm
*
unsafe
=
localtime
(
now
);
/*
* This is not thread-safe. Blame your C library.
* On Win32 there SHOULD be _localtime_s instead, but of course
* Cygwin and Mingw32 don't know about it. You're on your own if you
* this platform.
*/
if
(
unsafe
==
NULL
)
return
NULL
;
memcpy
(
res
,
unsafe
,
sizeof
(
*
res
));
return
res
;
}
#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