]> git.sesse.net Git - vlc/commitdiff
Win32: be compatible with GCC version bigger than 4.x
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 9 Jan 2010 12:57:17 +0000 (13:57 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 9 Jan 2010 13:31:43 +0000 (14:31 +0100)
include/vlc_common.h

index b2b3b4af2ba1cc4711a2ba6ece1a8a54976aefd3..14a308101ecbe25e39d7a2935d770ddb3b7ef56e 100644 (file)
@@ -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)))