[vlc-commits] Fix flawed CPP logic
Rémi Denis-Courmont
git at videolan.org
Wed Jul 13 17:04:29 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jul 13 18:04:20 2011 +0300| [c6ab41c3d3c361416ac60207824a549a802e66e6] | committer: Rémi Denis-Courmont
Fix flawed CPP logic
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c6ab41c3d3c361416ac60207824a549a802e66e6
---
src/misc/mtime.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/misc/mtime.c b/src/misc/mtime.c
index b811d10..d3d20e8 100644
--- a/src/misc/mtime.c
+++ b/src/misc/mtime.c
@@ -41,11 +41,11 @@
#endif
#if !defined (_POSIX_TIMERS)
# define _POSIX_TIMERS (-1)
-# include <sys/time.h>
-#elif defined __APPLE__
-# include <sys/time.h>
-#else
+#endif
+#if (_POSIX_TIMERS > 0)
# include <time.h> /* clock_gettime() */
+#else
+# include <sys/time.h>
#endif
/**
More information about the vlc-commits
mailing list