[vlc-devel] commit: Fix warning ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Sep 5 10:09:44 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Sep 5 10:59:22 2009 +0300| [691e51b266d6d198f8e35f199f92763c74c77c13] | committer: Rémi Denis-Courmont
Fix warning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=691e51b266d6d198f8e35f199f92763c74c77c13
---
src/misc/mtime.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/misc/mtime.c b/src/misc/mtime.c
index a0c24e8..d196fb7 100644
--- a/src/misc/mtime.c
+++ b/src/misc/mtime.c
@@ -324,7 +324,8 @@ mtime_t mdate( void )
i_previous_time = res;
LeaveCriticalSection( &date_lock );
}
-#elif USE_APPLE_MACH /* The version that should be used, if it was cancelable */
+#elif defined(USE_APPLE_MACH)
+ /* The version that should be used, if it was cancelable */
pthread_once(&mtime_timebase_info_once, mtime_init_timebase);
uint64_t mach_time = date * 1000 * mtime_timebase_info.denom / mtime_timebase_info.numer;
mach_wait_until(mach_time);
@@ -425,7 +426,8 @@ void msleep( mtime_t delay )
while( nanosleep( &ts_delay, &ts_delay ) && ( errno == EINTR ) );
-#elif USE_APPLE_MACH /* The version that should be used, if it was cancelable */
+#elif defined (USE_APPLE_MACH)
+ /* The version that should be used, if it was cancelable */
pthread_once(&mtime_timebase_info_once, mtime_init_timebase);
uint64_t mach_time = delay * 1000 * mtime_timebase_info.denom / mtime_timebase_info.numer;
mach_wait_until(mach_time + mach_absolute_time());
More information about the vlc-devel
mailing list