From: RĂ©mi Denis-Courmont Date: Sat, 9 Jan 2010 10:10:47 +0000 (+0200) Subject: error and warning function attributes depend on GCC 4.3 X-Git-Tag: 1.1.0-ff~1338 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=11fe3be41b4ba5d9558306101040319393921003;p=vlc error and warning function attributes depend on GCC 4.3 (not on some specific operating system) Pointed-out-by: Ramiro Polla --- diff --git a/include/vlc_mtime.h b/include/vlc_mtime.h index 477e7aa226..7545f2d392 100644 --- a/include/vlc_mtime.h +++ b/include/vlc_mtime.h @@ -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