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
73ef184d
Commit
73ef184d
authored
Jun 26, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localtime_r: fix Annex K usage
parent
45495aa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
compat/localtime_r.c
compat/localtime_r.c
+4
-2
No files found.
compat/localtime_r.c
View file @
73ef184d
...
@@ -18,8 +18,10 @@
...
@@ -18,8 +18,10 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
*****************************************************************************/
#if
(__STDC_VERSION__ >= 201
112L)
#if
defined(__STDC_LIB_EXT1__) && (__STDC_LIB_EXT1__ >= 20
112L)
# define __STDC_WANT_LIB_EXT1__ 1
# define __STDC_WANT_LIB_EXT1__ 1
#else
# define __STDC_WANT_LIB_EXT1__ 0
#endif
#endif
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
# include <config.h>
...
@@ -32,7 +34,7 @@
...
@@ -32,7 +34,7 @@
* thread-specific storage. */
* thread-specific storage. */
struct
tm
*
localtime_r
(
const
time_t
*
timep
,
struct
tm
*
result
)
struct
tm
*
localtime_r
(
const
time_t
*
timep
,
struct
tm
*
result
)
{
{
#if (__STDC_
VERSION__ >= 201112L
)
#if (__STDC_
WANT_LIB_EXT1__
)
return
localtime_s
(
timep
,
result
);
return
localtime_s
(
timep
,
result
);
#elif defined (_WIN32)
#elif defined (_WIN32)
return
((
errno
=
localtime_s
(
result
,
timep
))
==
0
)
?
result
:
NULL
;
return
((
errno
=
localtime_s
(
result
,
timep
))
==
0
)
?
result
:
NULL
;
...
...
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