[vlc-commits] include: Don't use the gnu_printf format attribute with clang
Martin Storsjö
git at videolan.org
Wed Feb 28 10:58:59 CET 2018
vlc | branch: master | Martin Storsjö <martin at martin.st> | Wed Feb 21 13:55:30 2018 +0200| [070fcc422e270939fdb91f855690cca447c4d3ab] | committer: Martin Storsjö
include: Don't use the gnu_printf format attribute with clang
Clang doesn't support this attribute yet.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=070fcc422e270939fdb91f855690cca447c4d3ab
---
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 bab06bcf41..d6a5c43b7b 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -97,7 +97,7 @@
# define VLC_DEPRECATED_ENUM
# endif
-# if defined( _WIN32 )
+# if defined( _WIN32 ) && !defined( __clang__ )
# define VLC_FORMAT(x,y) __attribute__ ((format(gnu_printf,x,y)))
# else
# define VLC_FORMAT(x,y) __attribute__ ((format(printf,x,y)))
More information about the vlc-commits
mailing list