From 08d7a20d7bfda963eb3b71443042165b19b86531 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 1 Nov 2008 15:24:51 +0200 Subject: [PATCH] Only check msleep on Linux (seems to depend on GNU ELF extensions) --- include/vlc_mtime.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/include/vlc_mtime.h b/include/vlc_mtime.h index 2e6780fc42..f3bb895d42 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)) -- 2.39.2