[vlc-commits] mtime: remove stray #include, fix warning on Windows
Rémi Denis-Courmont
git at videolan.org
Fri May 27 23:43:04 CEST 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat May 28 00:40:44 2016 +0300| [eaaae60e42dd5974491fbda416ab101e348de8e9] | committer: Rémi Denis-Courmont
mtime: remove stray #include, fix warning on Windows
We do not call clock_gettime() in this file anymore.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eaaae60e42dd5974491fbda416ab101e348de8e9
---
src/misc/mtime.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/src/misc/mtime.c b/src/misc/mtime.c
index 10782bc..2628786 100644
--- a/src/misc/mtime.c
+++ b/src/misc/mtime.c
@@ -36,15 +36,7 @@
#include <vlc_common.h>
#include <assert.h>
-#include <unistd.h>
-#if !defined (_POSIX_TIMERS) || defined (_WIN32)
-# define _POSIX_TIMERS (-1)
-#endif
-#if (_POSIX_TIMERS > 0)
-# include <time.h> /* clock_gettime() */
-#else
-# include <sys/time.h>
-#endif
+#include <time.h>
/**
* Convert seconds to a time in the format h:mm:ss.
More information about the vlc-commits
mailing list