[vlc-commits] compat: remove 'const' from the prototype of timegm().
KO Myung-Hun
git at videolan.org
Sun Dec 13 19:34:42 CET 2015
vlc | branch: master | KO Myung-Hun <komh78 at gmail.com> | Sat Dec 12 12:09:13 2015 +0900| [ed7287c042fbdc3a758e6113937fa6f7af5c7df8] | committer: Rémi Denis-Courmont
compat: remove 'const' from the prototype of timegm().
The prototype of timegm() does not have 'const'.
This fixes compilation on OS/2 which have only a declaration of
timegm().
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ed7287c042fbdc3a758e6113937fa6f7af5c7df8
---
compat/timegm.c | 2 +-
include/vlc_fixups.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/compat/timegm.c b/compat/timegm.c
index 68a3030..27a3df3 100644
--- a/compat/timegm.c
+++ b/compat/timegm.c
@@ -37,7 +37,7 @@ static bool is_leap_year(unsigned y)
return true;
}
-time_t timegm(const struct tm *tm)
+time_t timegm(struct tm *tm)
{
static const unsigned ydays[12 + 1] = {
0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334
diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index a028df7..213d3f3 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -200,7 +200,7 @@ struct tm *localtime_r (const time_t *, struct tm *);
#endif
#ifndef HAVE_TIMEGM
-time_t timegm(const struct tm *);
+time_t timegm(struct tm *);
#endif
#ifndef HAVE_TIMESPEC_GET
More information about the vlc-commits
mailing list