summaryrefslogtreecommitdiffstats
path: root/ta
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2016-11-17 22:46:18 +1100
committerJames Ross-Gowan <rossymiles@gmail.com>2016-11-17 23:34:20 +1100
commit40b626fd9b58e2975cff8dec202848a7bce41a9f (patch)
tree313b8ed8ca4b57da414a434ab24eb505b4468615 /ta
parenta3c27786c6aeac55942a805281f45a1571d899f4 (diff)
downloadmpv-40b626fd9b58e2975cff8dec202848a7bce41a9f.tar.bz2
mpv-40b626fd9b58e2975cff8dec202848a7bce41a9f.tar.xz
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
Diffstat (limited to 'ta')
-rw-r--r--ta/ta.h2
1 files changed, 1 insertions, 1 deletions
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