]> git.sesse.net Git - vlc/commitdiff
error and warning function attributes depend on GCC 4.3
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 9 Jan 2010 10:10:47 +0000 (12:10 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 9 Jan 2010 10:10:47 +0000 (12:10 +0200)
(not on some specific operating system)

Pointed-out-by: Ramiro Polla <ramiro.polla@gmail.com>
include/vlc_mtime.h

index 477e7aa2264c28ac2031113656c2a6203296bfa6..7545f2d392f17e3849640ff76e023ce3d4cc2a42 100644 (file)
@@ -68,7 +68,8 @@ VLC_EXPORT( void,    mwait,    ( mtime_t date ) );
 VLC_EXPORT( void,    msleep,   ( mtime_t delay ) );
 VLC_EXPORT( char *,  secstotimestr, ( char *psz_buffer, int secs ) );
 
-#if (defined (__GNUC__) && defined (__linux__)) || defined (__FreeBSD__) || defined (__OpenBSD__)
+#if defined (__GNUC__) \
+ && ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
 /* Linux has 100, 250, 300 or 1000Hz
  *
  * HZ=100 by default on FreeBSD, but some architectures use a 1000Hz timer