[vlc-devel] commit: Only check msleep on Linux (seems to depend on GNU ELF extensions) ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Nov 1 14:25:14 CET 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Nov 1 15:24:51 2008 +0200| [08d7a20d7bfda963eb3b71443042165b19b86531] | committer: Rémi Denis-Courmont
Only check msleep on Linux (seems to depend on GNU ELF extensions)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=08d7a20d7bfda963eb3b71443042165b19b86531
---
include/vlc_mtime.h | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/include/vlc_mtime.h b/include/vlc_mtime.h
index 2e6780f..f3bb895 100644
--- a/include/vlc_mtime.h
+++ b/include/vlc_mtime.h
@@ -68,13 +68,9 @@ VLC_EXPORT( void, mwait, ( mtime_t date ) );
VLC_EXPORT( void, msleep, ( mtime_t delay ) );
VLC_EXPORT( char *, secstotimestr, ( char *psz_buffer, int secs ) );
-#ifdef __GNUC__
-# ifdef __linux__
-# define VLC_HARD_MIN_SLEEP 1000 /* Linux has 100, 250, 300 or 1000Hz */
-# else
-# define VLC_HARD_MIN_SLEEP 0
-# endif
-#define VLC_SOFT_MIN_SLEEP 9000000
+#if defined (__GNUC__) && defined (__linux__)
+# define VLC_HARD_MIN_SLEEP 1000 /* Linux has 100, 250, 300 or 1000Hz */
+# define VLC_SOFT_MIN_SLEEP 9000000
static
__attribute__((unused))
More information about the vlc-devel
mailing list