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 --- wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index c4d0c9c8b0..2b0de8bcd5 100644 --- a/wscript +++ b/wscript @@ -119,7 +119,7 @@ main_dependencies = [ 'name': 'mingw', 'desc': 'MinGW', 'deps': [ 'os-win32' ], - 'func': check_statement('stddef.h', 'int x = __MINGW32__;' + 'func': check_statement('stdlib.h', 'int x = __MINGW32__;' 'int y = __MINGW64_VERSION_MAJOR'), }, { 'name': 'posix', -- cgit v1.2.3