From e68c09ae281ec4f58354a56183c43867654d96fd Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Sat, 9 Jan 2010 13:57:17 +0100 Subject: [PATCH] Win32: be compatible with GCC version bigger than 4.x --- include/vlc_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) -- 2.39.2