From 11fe3be41b4ba5d9558306101040319393921003 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 9 Jan 2010 12:10:47 +0200 Subject: [PATCH] error and warning function attributes depend on GCC 4.3 (not on some specific operating system) Pointed-out-by: Ramiro Polla --- include/vlc_mtime.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2