[vlc-devel] commit: error and warning function attributes depend on GCC 4.3 ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Jan 9 11:12:18 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jan 9 12:10:47 2010 +0200| [11fe3be41b4ba5d9558306101040319393921003] | committer: Rémi Denis-Courmont
error and warning function attributes depend on GCC 4.3
(not on some specific operating system)
Pointed-out-by: Ramiro Polla <ramiro.polla at gmail.com>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=11fe3be41b4ba5d9558306101040319393921003
---
include/vlc_mtime.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/include/vlc_mtime.h b/include/vlc_mtime.h
index 477e7aa..7545f2d 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
More information about the vlc-devel
mailing list