From 40b626fd9b58e2975cff8dec202848a7bce41a9f Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Thu, 17 Nov 2016 22:46:18 +1100 Subject: build: fix compilation with mingw-w64/Clang This fixes the build in mingw-w64/Clang on MSYS2. It also disables the use of gnu_printf in Clang, which was what was causing most of the warnings. The Clang-compiled mpv binary appears to work, but there are no guarantees yet, since until now mpv has only been tested with mingw-w64/GCC on Windows. Fixes #3800 --- ta/ta.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ta') diff --git a/ta/ta.h b/ta/ta.h index 8fbb9ea171..05564be73b 100644 --- a/ta/ta.h +++ b/ta/ta.h @@ -27,7 +27,7 @@ #endif // Broken crap with __USE_MINGW_ANSI_STDIO -#ifdef __MINGW32__ +#if defined(__MINGW32__) && defined(__GNUC__) && !defined(__clang__) #undef TA_PRF #define TA_PRF(a1, a2) __attribute__ ((format (gnu_printf, a1, a2))) #endif -- cgit v1.2.3