From: Jean-Baptiste Kempf Date: Sat, 9 Jan 2010 12:57:17 +0000 (+0100) Subject: Win32: be compatible with GCC version bigger than 4.x X-Git-Tag: 1.1.0-ff~1329 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e68c09ae281ec4f58354a56183c43867654d96fd;p=vlc Win32: be compatible with GCC version bigger than 4.x --- diff --git a/include/vlc_common.h b/include/vlc_common.h index b2b3b4af2b..14a308101e 100644 --- a/include/vlc_common.h +++ b/include/vlc_common.h @@ -74,7 +74,7 @@ /* Format string sanity checks */ #ifdef __GNUC__ -# if defined( _WIN32 ) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 4 +# if defined( _WIN32 ) && (__GNUC__ > 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ >= 4 ) ) # define LIBVLC_FORMAT(x,y) __attribute__ ((format(gnu_printf,x,y))) # else # define LIBVLC_FORMAT(x,y) __attribute__ ((format(printf,x,y)))